TXTextControl.DocumentServer.MailMerge.Print Method

Prints the merged document.


Prints the merged document. It uses the settings of the specified PrintDocument.

public void Print(System.Drawing.Printing.PrintDocument printDocument);
[Visual Basic]
Public Sub Print(ByVal printDocument As System.Drawing.Printing.PrintDocument)
Member Description

Specifies an instance of the PrintDocument class. Text Control uses the following settings of this object:

Setting Meaning
DocumentName Specifies the document's name.
PrintController Specifies the document's print controller.
PrinterSettings.FromPage The first page to print.
PrinterSettings.ToPage The last page to print.
PrinterSettings.Copies The number of copies to print.
PrinterSettings.Collate Specifies how the printed pages are sorted.
PrinterSettings.PrinterName Specifies the name of the printer.
PrinterSettings.PrintToFile Specifies whether the printed pages are saved in a file.
PrinterSettings.PrintRange Specifies the range of pages to print.
DefaultPageSettings.Color Specifies whether the printed pages are printed colored.

Print(String, String, Int32, Boolean)

Prints the merged document with specific settings for the document name, the printer name, the number of copies and whether it should be collated or not.

public void  Print(string docName, string printerName, int copyCount, bool collate);
[Visual Basic]
Public Sub Print(ByVal docName As String, ByVal printerName As String, ByVal copyCount As Integer, ByVal collate As Boolean)
Member Description

Specifies the document's name.


Specifies the name of the printer to which the output is sent.


Specifies the number of copies to print.


Collates output by printing every page of the first copy, then every page of the second copy, and so on. When collate is set to false, the printer prints every copy of the first page, then every copy of the second page, and so on.

See Also