[]
Shows the page setup dialog with the specified buttons for the specified sheet.
public DialogResult ShowPageSetup(int sheet, bool showPrintButton, bool showPreviewButton)
Public Function ShowPageSetup(sheet As Integer, showPrintButton As Boolean, showPreviewButton As Boolean) As DialogResult
Type | Name | Description |
---|---|---|
int | sheet | Sheet index |
bool | showPrintButton | Whether to display the Print button |
bool | showPreviewButton | Whether to display the Print Preview button |
Type | Description |
---|---|
DialogResult |
Type | Condition |
---|---|
ArgumentOutOfRangeException | Specified sheet index is out of range; must be between 0 and the total number of sheets. |
Shows the page setup dialog with the specified buttons for the specified sheet.
public DialogResult ShowPageSetup(SheetView sheet, bool showPrintButton, bool showPreviewButton)
Public Function ShowPageSetup(sheet As SheetView, showPrintButton As Boolean, showPreviewButton As Boolean) As DialogResult
Type | Name | Description |
---|---|---|
SheetView | sheet | Sheet |
bool | showPrintButton | Whether to display the Print button |
bool | showPreviewButton | Whether to display the Print Preview button |
Type | Description |
---|---|
DialogResult |