TXTextControl.WPF.TextControl.Print Method

Prints a Text Control document or a part of a document.

Print(String, Boolean)

Opens the standard print dialog to get printer settings and prints the document.

[C#]
public void Print(string docName, bool useLastPrinterSettings);
[Visual Basic]
Public Sub Print(ByVal DocName As String, ByVal UseLastPrinterSettings As Boolean)
Member Description
docName

Specifies the document's name.

useLastPrinterSettings

If this parameter is set to true, the dialog box is initialized with the user settings of the previous call.

Print(String, PageRange, Int32, Collation)

Prints a Text Control document with the standard printer using the specified page range, copy count and collation settings.

[C#]
public void Print(string docName, System.Windows.Controls.PageRange pageRange, int copyCount, System.Printing.Collation collation);
[Visual Basic]
Public Sub Print(ByVal DocName As String, ByVal pageRange As System.Windows.Controls.PageRange, ByVal copyCount As Integer, ByVal collation As System.Printing.Collation)
Member Description
docName

Specifies the document's name.

pageRange

Specifies a System.Windows.Controls.PageRange structure specifying the range of pages to print.

copyCount

Specifies the number of copies to print.

collation

Specifies a System.Printing.Collation member specifying whether the printer collates output.

Print(String, String, PageRange, Int32, Collation)

Prints a Text Control document with the specified printer using the specified page range, copy count and collation settings.

[C#]
public void Print(string docName, string printerName, System.Windows.Controls.PageRange pageRange, int copyCount, System.Printing.Collation collation);
[Visual Basic]
Public Sub Print(ByVal DocName As String, ByVal PrinterName As String, ByVal pageRange As System.Windows.Controls.PageRange, ByVal copyCount As Integer, ByVal collation As System.Printing.Collation)
Member Description
docName

Specifies the document's name.

printerName

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

pageRange

Specifies a System.Windows.Controls.PageRange structure specifying the range of pages to print.

copyCount

Specifies the number of copies to print.

collation

Specifies a System.Printing.Collation member specifying whether the printer collates output.

See Also