SpreadsheetGear 2017
CreatePrintDocument(ISheet,PrintWhat) Method






SpreadsheetGear.Windows.Controls 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.Windows.Printing.PrintDocument
'Usage
 
Dim instance As CommandPrint
Dim sheet As ISheet
Dim printWhat As PrintWhat
Dim value As System.Windows.Printing.PrintDocument
 
value = instance.CreatePrintDocument(sheet, printWhat)
protected virtual System.Windows.Printing.PrintDocument CreatePrintDocument( 
   ISheet sheet,
   PrintWhat printWhat
)
protected function CreatePrintDocument( 
    sheet: ISheet;
    printWhat: PrintWhat
): System.Windows.Printing.PrintDocument; virtual; 
protected function CreatePrintDocument( 
   sheet : ISheet,
   printWhat : PrintWhat
) : System.Windows.Printing.PrintDocument;
protected: virtual System.Windows.Printing.PrintDocument* CreatePrintDocument( 
   ISheet* sheet,
   PrintWhat printWhat
) 
protected:
virtual System.Windows.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