Spread Windows Forms 12.0 Product Documentation
ShowPageSetup(SheetView,Boolean,Boolean) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class > ShowPageSetup Method : ShowPageSetup(SheetView,Boolean,Boolean) Method
Sheet
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 SheetView, _
   ByVal showPrintButton As Boolean, _
   ByVal showPreviewButton As Boolean _
) As DialogResult
'Usage
 
Dim instance As FpSpread
Dim sheet As SheetView
Dim showPrintButton As Boolean
Dim showPreviewButton As Boolean
Dim value As DialogResult
 
value = instance.ShowPageSetup(sheet, showPrintButton, showPreviewButton)
public DialogResult ShowPageSetup( 
   SheetView sheet,
   bool showPrintButton,
   bool showPreviewButton
)

Parameters

sheet
Sheet
showPrintButton
Whether to display the Print button
showPreviewButton
Whether to display the Print Preview button
Example
This example uses the ShowPageSetup method.
FarPoint.Win.Spread.SheetView sv = new FarPoint.Win.Spread.SheetView();
fpSpread1.Sheets.Add(sv);
fpSpread1.ShowPageSetup(sv, true, true);
Dim sv As New FarPoint.Win.Spread.SheetView()
fpSpread1.Sheets.Add(sv)
fpSpread1.ShowPageSetup(sv, True, True)
See Also

Reference

FpSpread Class
FpSpread Members
Overload List