Intersoft ClientUI Documentation
PrintDocument Class
Members  See Also  Send Feedback
Intersoft.Client.Documents Namespace : PrintDocument Class






Provides printing capability for Intersoft documents.

Object Model

PrintDocument Class

Syntax

Visual Basic (Declaration) 
Public Class PrintDocument 
Visual Basic (Usage)Copy Code
Dim instance As PrintDocument
C# 
public class PrintDocument 
Delphi 
public class PrintDocument 
JScript 
public class PrintDocument 
Managed Extensions for C++ 
public __gc class PrintDocument 
C++/CLI 
public ref class PrintDocument 

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.

Inheritance Hierarchy

System.Object
   Intersoft.Client.Documents.PrintDocument

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.