PrintTool.ShowPreview(IWin32Window, UserLookAndFeel) Method
Invokes the standard Print Preview form showing the document that is created from a source (report or link) assigned to the PrintTool. The form is invoked as a child of the specified parent window, using the specified look-and-feel settings.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.XtraPrinting.v24.2.dll
NuGet Package: DevExpress.Win.Printing
#Declaration
public void ShowPreview(
IWin32Window owner,
UserLookAndFeel lookAndFeel
)
#Parameters
Name | Type | Description |
---|---|---|
owner | IWin32Window | A IWin32Window object that is the parent window for this dialog. |
look |
User |
A User |
#Remarks
Use the ShowPreview method to invoke the Print Preview form showing a report document.
The ShowPreview method internally generates a report document, if it is has not yet been created.
If the document has already been created when you call the ShowPreview method, it will not be re-created. For this reason, if the report has been changed, call the XtraReport.CreateDocument or Link.CreateDocument method prior to calling the ShowPreview method.
After closing the Print Preview form, it is required to explicitly dispose of the document source (report or link) assigned to the PrintTool.
The options of the Print Preview Form are available via the PrintTool.PreviewForm property.