Occurs before preview dialog appears.
Syntax
Event Data
The event handler receives an argument of type PrintPreviewShowingEventArgs containing data related to this event. The following PrintPreviewShowingEventArgs properties provide information specific to this event.
Property | Description |
---|
Cancel | Gets or sets whether to cancel the print preview. |
PreviewControl | Gets the control associated with the print preview dialog. |
PreviewDialog | Gets the print preview dialog to be displayed. |
Remarks
Example
This example centers the print preview dialog.
C# | Copy Code |
---|
private void fpSpread1_PrintPreviewShowing(object sender, FarPoint.Win.Spread.PrintPreviewShowingEventArgs e)
{
e.Preview.StartPosition = FormStartPosition.CenterScreen;
} |
Visual Basic | Copy Code |
---|
Private Sub FpSpread1_PrintPreviewShowing(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.PrintPreviewShowingEventArgs)
Handles FpSpread1.PrintPreviewShowing
e.Preview.StartPosition = FormStartPosition.CenterScreen
End Sub |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also