| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function ShowPageSetup( _ ByVal sheet As Integer, _ ByVal showPrintButton As Boolean, _ ByVal showPreviewButton As Boolean _ ) As DialogResult | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public DialogResult ShowPageSetup( int sheet, bool showPrintButton, bool showPreviewButton ) | |
Parameters
- sheet
- Sheet index
- showPrintButton
- Whether to display the Print button
- showPreviewButton
- Whether to display the Print Preview button
| Exception | Description |
|---|---|
| ArgumentOutOfRangeException | Specified sheet index is out of range; must be between 0 and total number of sheets. |