FlexGrid for WinForms
PrintGrid(String,PrintGridFlags,String,String) Method



The document name, which appears on the progress dialogs and on the print job windows.
Flags that select printing options.
String that appears on the top of every page.
String that appears on the bottom of every page.
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, _
   ByVal header As String, _
   ByVal footer As String _
) As Boolean
'Usage
 
Dim instance As C1FlexGridBase
Dim docName As String
Dim flags As PrintGridFlags
Dim header As String
Dim footer As String
Dim value As Boolean
 
value = instance.PrintGrid(docName, flags, header, footer)

Parameters

docName
The document name, which appears on the progress dialogs and on the print job windows.
flags
Flags that select printing options.
header
String that appears on the top of every page.
footer
String that appears on the bottom of every page.

Return Value

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

The header and footer strings may contain up to three tab-delimited sections, which are aligned to the left, center, and right of the page. The strings may also contain placeholders that are replaced with the current page number and total number of pages ("{0}" and "{1}").

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

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