SpreadsheetGear 2017
CreateCommandPrint(ISheet,PrintWhat,Boolean,Boolean) Method






SpreadsheetGear.Commands Namespace > CommandManager Class > CreateCommandPrint Method : CreateCommandPrint(ISheet,PrintWhat,Boolean,Boolean) Method
Specifies the sheet.
Specifies what to print.
Specifies whether to do a print preview.
Specifies whether the print dialog should be displayed before printing.
Creates an instance of the default print command.
Syntax
'Declaration
 
Public Overloads Overridable Function CreateCommandPrint( _
   ByVal sheet As ISheet, _
   ByVal printWhat As PrintWhat, _
   ByVal printPreview As System.Boolean, _
   ByVal showPrintDialog As System.Boolean _
) As Command
'Usage
 
Dim instance As CommandManager
Dim sheet As ISheet
Dim printWhat As PrintWhat
Dim printPreview As System.Boolean
Dim showPrintDialog As System.Boolean
Dim value As Command
 
value = instance.CreateCommandPrint(sheet, printWhat, printPreview, showPrintDialog)
public virtual Command CreateCommandPrint( 
   ISheet sheet,
   PrintWhat printWhat,
   System.bool printPreview,
   System.bool showPrintDialog
)
public function CreateCommandPrint( 
    sheet: ISheet;
    printWhat: PrintWhat;
    printPreview: System.Boolean;
    showPrintDialog: System.Boolean
): Command; virtual; 
public function CreateCommandPrint( 
   sheet : ISheet,
   printWhat : PrintWhat,
   printPreview : System.boolean,
   showPrintDialog : System.boolean
) : Command;
public: virtual Command* CreateCommandPrint( 
   ISheet* sheet,
   PrintWhat printWhat,
   System.bool printPreview,
   System.bool showPrintDialog
) 
public:
virtual Command^ CreateCommandPrint( 
   ISheet^ sheet,
   PrintWhat printWhat,
   System.bool printPreview,
   System.bool showPrintDialog
) 

Parameters

sheet
Specifies the sheet.
printWhat
Specifies what to print.
printPreview
Specifies whether to do a print preview.
showPrintDialog
Specifies whether the print dialog should be displayed before printing.
Remarks
Override this method to provide a custom implementation of this command.
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

CommandManager Class
CommandManager Members
Overload List