Skip to main content

FaxPrintJob

Version: 2.0

cete.dynamicpdf.printing.faxprintjob

FaxPrintJob​

  • Namespace: ceTe.DynamicPDF.Printing
  • Assemblies: ceTe.DynamicPDF.Printing.40.x64.dll, ceTe.DynamicPDF.Printing.40.x86.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​

This class is a DynamicPDF PrintManager feature. The following license is required for non-evaluation usage:

  • DynamicPDF PrintManager for .NET

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

FaxOptions​

Gets the FaxOptions object.

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

Property Value​

FaxOptions

JobId​

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

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

Property Value​

Int32

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

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

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

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

PrintToFileName​

(Inherited from PrintJob)

public string PrintToFileName { get; set; }
Public Property PrintToFileName As String

Property Value​

String

Status​

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

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

Property Value​

PrintJobStatus

Methods​

Dispose()​

Releases resources used by the PrintJob object. (Inherited from PrintJob)

public void Dispose()
Sub Dispose()

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.

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 .

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.

Print()​

Prints the job to the printer. (Inherited from PrintJob)

public void Print()
Sub Print()

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 .

Events​

Failed​

Occurs when a job fails. (Inherited from PrintJob)

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

Event Handler​

PrintJobFailedEventHandler

Starting​

Occurs before starting a job. (Inherited from PrintJob)

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

Event Handler​

PrintJobStartingEventHandler

Succeeded​

Occurs when a job succeeds. (Inherited from PrintJob)

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

Event Handler​

PrintJobEventHandler

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

See Also​

ceTe.DynamicPDF.Printing