Spread Windows Forms 9.0 Product Documentation
ShowPageSetup(Int32,Boolean,Boolean) Method
Example 


Sheet index
Whether to display the Print button
Whether to display the Print Preview button
Shows the page setup dialog with the specified buttons for the specified sheet.
Syntax
'Declaration
 
Public Overloads Function ShowPageSetup( _
   ByVal sheet As Integer, _
   ByVal showPrintButton As Boolean, _
   ByVal showPreviewButton As Boolean _
) As DialogResult
'Usage
 
Dim instance As FpSpread
Dim sheet As Integer
Dim showPrintButton As Boolean
Dim showPreviewButton As Boolean
Dim value As DialogResult
 
value = instance.ShowPageSetup(sheet, showPrintButton, showPreviewButton)
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
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException Specified sheet index is out of range; must be between 0 and the total number of sheets.
Example
This example uses the ShowPageSetup method.
fpSpread1.ShowPageSetup(0, true, true);
FpSpread1.ShowPageSetup(0, True, True)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

FpSpread Class
FpSpread Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.