SpreadsheetGear 2012
CommandPrint Constructor(ISheet,PrintWhat,Boolean,Boolean)






Specifies the sheet.
Specifies what to print.
Specifies whether to do a print preview.
Specifies whether the print dialog should be displayed before printing.
Initializes this Command with the specified ISheet and print options.
Syntax
'Declaration
 
Public Function New( _
   ByVal sheet As ISheet, _
   ByVal printWhat As PrintWhat, _
   ByVal printPreview As System.Boolean, _
   ByVal showPrintDialog As System.Boolean _
)
'Usage
 
Dim sheet As ISheet
Dim printWhat As PrintWhat
Dim printPreview As System.Boolean
Dim showPrintDialog As System.Boolean
 
Dim instance As New CommandPrint(sheet, printWhat, printPreview, showPrintDialog)
public CommandPrint( 
   ISheet sheet,
   PrintWhat printWhat,
   System.bool printPreview,
   System.bool showPrintDialog
)
public CommandPrint( 
    sheet: ISheet;
    printWhat: PrintWhat;
    printPreview: System.Boolean;
    showPrintDialog: System.Boolean
); 
public function CommandPrint( 
   sheet : ISheet,
   printWhat : PrintWhat,
   printPreview : System.boolean,
   showPrintDialog : System.boolean
);
public: CommandPrint( 
   ISheet* sheet,
   PrintWhat printWhat,
   System.bool printPreview,
   System.bool showPrintDialog
)
public:
CommandPrint( 
   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.
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

Send Feedback