ComponentOne DataGrid for WPF and Silverlight
GetPageImagesAsync Method

C1.WPF.DataGrid Namespace > C1DataGrid Class : GetPageImagesAsync Method
How to scale the document to fit the pages.
Size of the pages in pixels.
Margin around the page in pixels.
The maximum number of pages to print.
Indicates whether page info like a page number/count should be added to the generated images.
Clean up the memory space of the previous page when printing.
Gets all images. This method doesn't block the calling thread.
Syntax
'Declaration
 
Public Sub GetPageImagesAsync( _
   ByVal scaleMode As ScaleMode, _
   ByVal pageSize As System.Windows.Size, _
   ByVal margin As System.Windows.Thickness, _
   ByVal maxPages As System.Integer, _
   ByVal showPageInfo As System.Boolean, _
   Optional ByVal cleanMemory As System.Boolean _
) 
public void GetPageImagesAsync( 
   ScaleMode scaleMode,
   System.Windows.Size pageSize,
   System.Windows.Thickness margin,
   System.int maxPages,
   System.bool showPageInfo,
   System.bool cleanMemory
)

Parameters

scaleMode
How to scale the document to fit the pages.
pageSize
Size of the pages in pixels.
margin
Margin around the page in pixels.
maxPages
The maximum number of pages to print.
showPageInfo
Indicates whether page info like a page number/count should be added to the generated images.
cleanMemory
Clean up the memory space of the previous page when printing.
See Also

Reference

C1DataGrid Class
C1DataGrid Members