Prints a Text Control document or a part of a document.
public void Print(string docName, bool useLastPrinterSettings);
Public Sub Print(ByVal DocName As String, ByVal UseLastPrinterSettings As Boolean)
public void Print(string docName, System.Windows.Controls.PageRange pageRange, int copyCount, System.Printing.Collation collation);
Public Sub Print(ByVal DocName As String, ByVal pageRange As System.Windows.Controls.PageRange, ByVal copyCount As Integer, ByVal collation As System.Printing.Collation)
public void Print(string docName, string printerName, System.Windows.Controls.PageRange pageRange, int copyCount, System.Printing.Collation collation);
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)
Parameter | Description |
---|---|
doc |
Specifies the document's name. |
use |
If this parameter is set to true, the dialog box is initialized with the user settings of the previous call. |
page |
Specifies a System. |
copy |
Specifies the number of copies to print. |
collation | Specifies a System. |
printer |
Specifies the name of the printer to which the output is sent. |