SpreadsheetGear 2017
CreatePrintDocument(ISheet,PrintWhat) Method






SpreadsheetGear.Windows.Forms Namespace > CommandPrint Class > CreatePrintDocument Method : CreatePrintDocument(ISheet,PrintWhat) Method
Specifies the sheet.
Specifies what to print.
Creates an instance of the default print document.
Syntax
'Declaration
 
Protected Overloads Overridable Function CreatePrintDocument( _
   ByVal sheet As ISheet, _
   ByVal printWhat As PrintWhat _
) As System.Drawing.Printing.PrintDocument
'Usage
 
Dim instance As CommandPrint
Dim sheet As ISheet
Dim printWhat As PrintWhat
Dim value As System.Drawing.Printing.PrintDocument
 
value = instance.CreatePrintDocument(sheet, printWhat)
protected virtual System.Drawing.Printing.PrintDocument CreatePrintDocument( 
   ISheet sheet,
   PrintWhat printWhat
)
protected function CreatePrintDocument( 
    sheet: ISheet;
    printWhat: PrintWhat
): System.Drawing.Printing.PrintDocument; virtual; 
protected function CreatePrintDocument( 
   sheet : ISheet,
   printWhat : PrintWhat
) : System.Drawing.Printing.PrintDocument;
protected: virtual System.Drawing.Printing.PrintDocument* CreatePrintDocument( 
   ISheet* sheet,
   PrintWhat printWhat
) 
protected:
virtual System.Drawing.Printing.PrintDocument^ CreatePrintDocument( 
   ISheet^ sheet,
   PrintWhat printWhat
) 

Parameters

sheet
Specifies the sheet.
printWhat
Specifies what to print.
Remarks
Override this method to provide a custom print document.
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

CommandPrint Class
CommandPrint Members
Overload List