Skip to main content

FaxPrintJob

Version: 4.0

cete.dynamicpdf.printing.faxprintjob

FaxPrintJob​

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:

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​

The fax printer used by the fax print job.

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:

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​

The fax printer used by the fax print job.

The fax number associated with the recipient.

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:

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​

The fax printer used by the fax print job.

The fax number associated with the recipient.

The InputPdf object containing the pages to be added to the fax print job.

The first page from the InputPdf to be added to the fax print job.

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:

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​

The fax printer used by the fax print job.

The fax number associated with the recipient.

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:

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​

The fax printer used by the fax print job.

The fax number associated with the recipient.

The file path to the PDF containing the pages to be added to the fax print job.

The first page from the InputPdf to be added to the fax print job.

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:

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​

The name of the fax printer used by the fax print job.

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:

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​

The name of the fax printer used by the fax print job.

The fax number associated with the recipient.

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:

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​

The name of the fax printer used by the fax print job.

The fax number associated with the recipient.

The InputPdf object containing the pages to be added to the fax print job.

The first page from the InputPdf to be added to the fax print job.

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:

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​

The name of the fax printer used by the fax print job.

The fax number associated with the recipient.

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:

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​

The name of the fax printer used by the fax print job.

The fax number associated with the recipient.

The file path to the PDF containing the pages to be added to the fax print job.

The first page from the InputPdf to be added to the fax print job.

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:

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​

String

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

FaxOptions​

Gets the FaxOptions object.

public FaxOptions FaxOptions { get; }
Public Property FaxOptions As FaxOptions

Property Value​

FaxOptions

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

JobId​

Gets the ID of the job. (Inherited from PrintJob)

public int JobId { get; }
Public Property JobId As Int32

Property Value​

Int32

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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​

PrintJobPageList

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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​

Int32

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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​

Printer

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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​

PrintJobPrintOptions

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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​

Int32

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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​

String

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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​

PrintJobStatus

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Status​

Gets the current status of the job. (Inherited from PrintJob)

public PrintJobStatus Status { get; }
Public Property Status As PrintJobStatus

Property Value​

PrintJobStatus

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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:

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​

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:

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:

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:

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:

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:

Events​

Failed​

Occurs when a job fails. (Inherited from PrintJob)

public event PrintJobFailedEventHandler FaxPrintJob.Failed;
Public Event FaxPrintJob.Failed As PrintJobFailedEventHandler

Event Handler​

PrintJobFailedEventHandler

Licensing Info​

This event is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Starting​

Occurs before starting a job. (Inherited from PrintJob)

public event PrintJobStartingEventHandler FaxPrintJob.Starting;
Public Event FaxPrintJob.Starting As PrintJobStartingEventHandler

Event Handler​

PrintJobStartingEventHandler

Licensing Info​

This event is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Succeeded​

Occurs when a job succeeds. (Inherited from PrintJob)

public event PrintJobEventHandler FaxPrintJob.Succeeded;
Public Event FaxPrintJob.Succeeded As PrintJobEventHandler

Event Handler​

PrintJobEventHandler

Licensing Info​

This event is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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​

PrintJobEventHandler

Licensing Info​

This event is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF.Printing