Displays the PageSetupDialog, for dialog must be specified: PageSettings PrinterSettings This method is a workaround for .NET bug with Margins in PageSetupDialog (the are displayed incorrectly if RegionInfo.CurrentRegion.IsMetric == true) and for PaperSize if it is created as PaperSize ps = new PaperSize(Name, Width, Height);

Namespace:  C1.C1PrintDocument.Util
Assembly:  C1.C1PrintDocument.Classic.2 (in C1.C1PrintDocument.Classic.2.dll)

Syntax

C#
public static DialogResult ShowPageSetupDialog(
	PageSetupDialog dialog
)
Visual Basic (Declaration)
Public Shared Function ShowPageSetupDialog ( _
	dialog As PageSetupDialog _
) As DialogResult

Parameters

dialog
Type: System.Windows.Forms..::.PageSetupDialog
The PageSetupDialog object

Return Value

Returns the result of dialog.ShowDialog() function.

See Also