Intersoft.Client.Documents Namespace > PrintDocument Class : Print Method |
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 )
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.
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