FlexGrid for WinForms
PrintGrid(String,PrintGridFlags) Method



The document name, which appears on the progress dialogs and on the print job windows.
Flags that select printing options.
Prints the grid, optionally showing a page setup or print preview dialog.
Syntax
'Declaration
 
Public Overloads Function PrintGrid( _
   ByVal docName As String, _
   ByVal flags As PrintGridFlags _
) As Boolean
'Usage
 
Dim instance As C1FlexGridBase
Dim docName As String
Dim flags As PrintGridFlags
Dim value As Boolean
 
value = instance.PrintGrid(docName, flags)
public bool PrintGrid( 
   string docName,
   PrintGridFlags flags
)
public:
bool PrintGrid( 
   String^ docName,
   PrintGridFlags flags
) 

Parameters

docName
The document name, which appears on the progress dialogs and on the print job windows.
flags
Flags that select printing options.

Return Value

True if the grid was printed, false if the user canceled the operation before printing started.
Remarks

Use the PrintParameters property to set up options such as page orientation and margins, header and footer fonts, etc.

The method returns true if the user started the printing process. If the user clicks cancel while the grid is printing, the method returns true (some pages may be printed anyway depending on the printer settings). To detect canceled jobs, handle the EndPrint event and check the value of the e.Cancel parameter.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback