cete.dynamicpdf.printing.faxprintjob
FaxPrintJob
- Namespace: ceTe.DynamicPDF.Printing
- Assemblies: DynamicPDF.Printing.dll
Represents a job that can be sent to a printer for printing a fax.
public class FaxPrintJob : PrintJob, IDisposable
Public Class FaxPrintJob
Inherits PrintJob
Implements IDisposable
Inheritance: Object → PrintJob → FaxPrintJob
Implements: IDisposable
Licensing Info
This class is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Examples
The following examples creates a fax print job and sends the fax.
Imports System
Imports ceTe.DynamicPDF.Printing
Module MyModule
Sub Main()
' Create a fax print job
Dim MyFaxPrintJob As FaxPrintJob = New FaxPrintJob("FaxPrinterName", "1-555-389-4567", "C:\MyDocument.pdf")
' Send the fax
MyFaxPrintJob.Print()
End Sub
End Module
using System;
using ceTe.DynamicPDF.Printing;
class MyClass
{
static void Main()
{
// Create a fax print job
FaxPrintJob faxPrintJob = new FaxPrintJob("FaxPrinterName", "1-555-465-1177", @"C:\MyDocument.pdf");
// Send the fax
faxPrintJob.Print();
}
}
Constructors
FaxPrintJob(Printer, String)
Initializes a new instance of the FaxPrintJob class.
public FaxPrintJob(Printer printer, string recipientNumber)
Public Sub New (printer As Printer, recipientNumber As String)
Parameters
- printer: Printer
The fax printer used by the fax print job.
- recipientNumber: String
The fax number associated with the recipient.
Licensing Info
This constructor is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
FaxPrintJob(Printer, String, InputPdf)
Initializes a new instance of the FaxPrintJob class.
public FaxPrintJob(Printer printer, string recipientNumber, InputPdf inputPdf)
Public Sub New (printer As Printer, recipientNumber As String, inputPdf As InputPdf)
Parameters
- printer: Printer
The fax printer used by the fax print job.
- recipientNumber: String
The fax number associated with the recipient.
- inputPdf: InputPdf
The InputPdf object containing the pages to be added to the fax print job.
Licensing Info
This constructor is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
FaxPrintJob(Printer, String, InputPdf, Int32, Int32)
Initializes a new instance of the FaxPrintJob class.
public FaxPrintJob(Printer printer, string recipientNumber, InputPdf inputPdf, int startPage, int pageCount)
Public Sub New (printer As Printer, recipientNumber As String, inputPdf As InputPdf, startPage As Integer, pageCount As Integer)
Parameters
- printer: Printer
The fax printer used by the fax print job.
- recipientNumber: String
The fax number associated with the recipient.
- inputPdf: InputPdf
The InputPdf object containing the pages to be added to the fax print job.
- startPage: Int32
The first page from the InputPdf to be added to the fax print job.
- pageCount: Int32
The number of pages to be added to the fax print job.
Licensing Info
This constructor is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
FaxPrintJob(Printer, String, String)
Initializes a new instance of the FaxPrintJob class.
public FaxPrintJob(Printer printer, string recipientNumber, string pdfFileName)
Public Sub New (printer As Printer, recipientNumber As String, pdfFileName As String)
Parameters
- printer: Printer
The fax printer used by the fax print job.
- recipientNumber: String
The fax number associated with the recipient.
- pdfFileName: String
The file path to the PDF containing the pages to be added to the fax print job.
Licensing Info
This constructor is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
FaxPrintJob(Printer, String, String, Int32, Int32)
Initializes a new instance of the FaxPrintJob class.
public FaxPrintJob(Printer printer, string recipientNumber, string pdfFileName, int startPage, int pageCount)
Public Sub New (printer As Printer, recipientNumber As String, pdfFileName As String, startPage As Integer, pageCount As Integer)
Parameters
- printer: Printer
The fax printer used by the fax print job.
- recipientNumber: String
The fax number associated with the recipient.
- pdfFileName: String
The file path to the PDF containing the pages to be added to the fax print job.
- startPage: Int32
The first page from the InputPdf to be added to the fax print job.
- pageCount: Int32
The number of pages to be added to the fax print job.
Licensing Info
This constructor is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
FaxPrintJob(String, String)
Initializes a new instance of the FaxPrintJob class.
public FaxPrintJob(string printerName, string recipientNumber)
Public Sub New (printerName As String, recipientNumber As String)
Parameters
- printerName: String
The name of the fax printer used by the fax print job.
- recipientNumber: String
The fax number associated with the recipient.
Licensing Info
This constructor is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
FaxPrintJob(String, String, InputPdf)
Initializes a new instance of the FaxPrintJob class.
public FaxPrintJob(string printerName, string recipientNumber, InputPdf inputPdf)
Public Sub New (printerName As String, recipientNumber As String, inputPdf As InputPdf)
Parameters
- printerName: String
The name of the fax printer used by the fax print job.
- recipientNumber: String
The fax number associated with the recipient.
- inputPdf: InputPdf
The InputPdf object containing the pages to be added to the fax print job.
Licensing Info
This constructor is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
FaxPrintJob(String, String, InputPdf, Int32, Int32)
Initializes a new instance of the FaxPrintJob class.
public FaxPrintJob(string printerName, string recipientNumber, InputPdf inputPdf, int startPage, int pageCount)
Public Sub New (printerName As String, recipientNumber As String, inputPdf As InputPdf, startPage As Integer, pageCount As Integer)
Parameters
- printerName: String
The name of the fax printer used by the fax print job.
- recipientNumber: String
The fax number associated with the recipient.
- inputPdf: InputPdf
The InputPdf object containing the pages to be added to the fax print job.
- startPage: Int32
The first page from the InputPdf to be added to the fax print job.
- pageCount: Int32
The number of pages to be added to the fax print job.
Licensing Info
This constructor is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
FaxPrintJob(String, String, String)
Initializes a new instance of the FaxPrintJob class.
public FaxPrintJob(string printerName, string recipientNumber, string pdfFileName)
Public Sub New (printerName As String, recipientNumber As String, pdfFileName As String)
Parameters
- printerName: String
The name of the fax printer used by the fax print job.
- recipientNumber: String
The fax number associated with the recipient.
- pdfFileName: String
The file path to the PDF containing the pages to be added to the fax print job.
Licensing Info
This constructor is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
FaxPrintJob(String, String, String, Int32, Int32)
Initializes a new instance of the FaxPrintJob class.
public FaxPrintJob(string printerName, string recipientNumber, string pdfFileName, int startPage, int pageCount)
Public Sub New (printerName As String, recipientNumber As String, pdfFileName As String, startPage As Integer, pageCount As Integer)
Parameters
- printerName: String
The name of the fax printer used by the fax print job.
- recipientNumber: String
The fax number associated with the recipient.
- pdfFileName: String
The file path to the PDF containing the pages to be added to the fax print job.
- startPage: Int32
The first page from the InputPdf to be added to the fax print job.
- pageCount: Int32
The number of pages to be added to the print job.
Licensing Info
This constructor is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Properties
DocumentName
Gets or sets the name of the document that is to be shown in the print spooler. (Inherited from PrintJob)
public string DocumentName { get; set; }
Public Property DocumentName As String
Property Value
Licensing Info
This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
FaxOptions
Gets the FaxOptions object.
public FaxOptions FaxOptions { get; }
Public Property FaxOptions As FaxOptions
Property Value
Licensing Info
This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
JobId
Gets the ID of the job. (Inherited from PrintJob)
public int JobId { get; }
Public Property JobId As Int32
Property Value
Licensing Info
This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Pages
Gets a PrintJobPageList object that represents the pages to be printed by the job. (Inherited from PrintJob)
public PrintJobPageList Pages { get; }
Public Property Pages As PrintJobPageList
Property Value
Licensing Info
This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
PagesPrinted
Gets a value indicating how many pages have been printed. (Inherited from PrintJob)
public int PagesPrinted { get; }
Public Property PagesPrinted As Int32
Property Value
Licensing Info
This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Remarks
This property is dependent on the printer driver to update the value. It is not generally accurate when printing to network printers.
Printer
Gets the Printer object that is targeted by the job. (Inherited from PrintJob)
public Printer Printer { get; }
Public Property Printer As Printer
Property Value
Licensing Info
This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
PrintOptions
Gets a PrintJobPrintOptions objects that represents the printing options for the job. (Inherited from PrintJob)
public PrintJobPrintOptions PrintOptions { get; }
Public Property PrintOptions As PrintJobPrintOptions
Property Value
Licensing Info
This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
PrintPriority
Gets or sets the Print priority of print job. Enter the value in between the Range(1 - 99). (Inherited from PrintJob)
public int PrintPriority { get; set; }
Public Property PrintPriority As Int32
Property Value
Licensing Info
This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
PrintToFileName
Gets or sets the filename or path where the output will be saved. (Inherited from PrintJob)
public string PrintToFileName { get; set; }
Public Property PrintToFileName As String
Property Value
Licensing Info
This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Remarks
If this property is set with a valid filename, raw printer data will be saved instead of actual printing.
RawStatus
RawStatus represents the status as returned by the printer driver. It may have multiple bits set at the same time which means it can represent multiple values from the PrintJobStatus enumeration. (Inherited from PrintJob)
public PrintJobStatus RawStatus { get; }
Public Property RawStatus As PrintJobStatus
Property Value
Licensing Info
This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Status
Gets the current status of the job. (Inherited from PrintJob)
public PrintJobStatus Status { get; }
Public Property Status As PrintJobStatus
Property Value
Licensing Info
This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Methods
Dispose()
Clean up any resources being used.
public void Dispose()
Sub Dispose()
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Print()
Prints the job to the printer. (Inherited from PrintJob)
public void Print()
Sub Print()
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Events
Failed
Occurs when a job fails. (Inherited from PrintJob)
public event PrintJobFailedEventHandler FaxPrintJob.Failed;
Public Event FaxPrintJob.Failed As PrintJobFailedEventHandler
Event Handler
Licensing Info
This event is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Starting
Occurs before starting a job. (Inherited from PrintJob)
public event PrintJobStartingEventHandler FaxPrintJob.Starting;
Public Event FaxPrintJob.Starting As PrintJobStartingEventHandler
Event Handler
Licensing Info
This event is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Succeeded
Occurs when a job succeeds. (Inherited from PrintJob)
public event PrintJobEventHandler FaxPrintJob.Succeeded;
Public Event FaxPrintJob.Succeeded As PrintJobEventHandler
Event Handler
Licensing Info
This event is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Updated
Occurs when a job's status or pages printed is updated. (Inherited from PrintJob)
public event PrintJobEventHandler FaxPrintJob.Updated;
Public Event FaxPrintJob.Updated As PrintJobEventHandler
Event Handler
Licensing Info
This event is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.