Intersoft ClientUI Documentation
Print Method



The DocumentPaginator object to print.
A description of the job that is to be printed. This text appears in the user interface (UI) of the printer.
Prints a DocumentPaginator object.
Syntax
Public Sub Print( _
   ByVal paginator As DocumentPaginator, _
   ByVal documentName As String, _
   ByVal printMode As PrintDocumentMode _
) 
Dim instance As PrintDocument
Dim paginator As DocumentPaginator
Dim documentName As String
Dim printMode As PrintDocumentMode
 
instance.Print(paginator, documentName, printMode)
public void Print( 
   DocumentPaginator paginator,
   string documentName,
   PrintDocumentMode printMode
)
public:
void Print( 
   DocumentPaginator^ paginator,
   String^ documentName,
   PrintDocumentMode printMode
) 

Parameters

paginator
The DocumentPaginator object to print.
documentName
A description of the job that is to be printed. This text appears in the user interface (UI) of the printer.
printMode
Remarks

PrintDocument class will use the Print method to print the document. Print method needs two parameters, DocumentPaginator object and the document name. DocumentPaginator is an abstract base class that supports creation of multiple-page elements from a single document. By default, each FixedDocument has DocumentPaginator property that contain DocumentPaginator object for the fixed document.

CS
Copy Code
private void Print()
{
    PrintDocument pd = new PrintDocument();
    pd.Print(FixedDocument1.DocumentPaginator, "Employee Document");
}

Additionally, you can specify a custom paginator class to add custom elements for printing purpose only, such as header or footer. To learn more about how to implement custom paginator class for printing purpose, see How-to: Use Custom Paginator to Print FixedDocument. To learn more about how to implement custom paginator class in UXDocumentViewer, see How-to: Use Custom Paginator in UXDocumentViewer.

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

Reference

PrintDocument Class
PrintDocument Members

Send Feedback