PrintPreview Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Shows a print preview of the current document.
Syntax
PrintPreview(string)
Shows a print preview of the current document.
public void PrintPreview(string docName);Public Sub PrintPreview(docName As String)| Parameter | Description |
|---|---|
| docName | Specifies the document's name. |
PrintPreview(PrintDocument)
Shows a print preview of the current document using settings from the specified PrintDocument object.
public void PrintPreview(PrintDocument printDocument);Public Sub PrintPreview(printDocument As PrintDocument)| Parameter | Description |
|---|---|
| printDocument | Specifies an instance of the PrintDocument class. |
Examples
The following example opens a print preview for the current document. The created object is then available to the surrounding document workflow.
textControl.PrintPreview("CustomerName");
Console.WriteLine("Text Control is ready for use.");textControl.PrintPreview("CustomerName")
Console.WriteLine("Text Control is ready for use.")