C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class > PrintGrid Method : PrintGrid(String,PrintGridFlags) Method |
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.
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