MindFusion.Reporting for Silverlight Programmer's Guide
ReportPrinter.PreparePrint Method
See Also
 





Prepares the underlying report for printing by layouting and rendering it. The prepared report can be subsequently printed through a call to the PrintPrepared method.

Namespace: MindFusion.Reporting.Silverlight
Assembly: MindFusion.Reporting.Silverlight

 Syntax

C#  Copy Code

public void PreparePrint (
    Size paperSize,
    Thickness margin
)

Visual Basic  Copy Code

Public Sub PreparePrint( _
    paperSize As Size, _
    margin As Thickness _
)

 Parameters

paperSize

The size of the paper to print on, expressed in device-independent pixels.

margin

The margin around the printed content on each page, expressed in device-independent pixels.

 Remarks

This method is useful when printing large reports. The strategy is to prepare the reports beforehand and only call PrintPrepared when the user initiates a printing action. Therefore avoiding the possibility of a Silverlight exception if the report rendering takes too long.

 See Also

ReportPrinter Members
ReportPrinter Class
MindFusion.Reporting.Silverlight Namespace