
Visual Basic (Declaration) | |
---|---|
Public Class PrintDocument |
Visual Basic (Usage) | ![]() |
---|---|
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 |
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 | ![]() |
---|---|
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.
Intersoft.Client.Documents.PrintDocument
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