Class WindowsPrintJob
Specifies information about how the output from a EPLPrinter object is printed under Windows.
Inheritance
Inherited Members
Namespace: Neodynamic.SDK.EPLPrinter.Printing
Assembly: cs.temp.dll.dll
Syntax
public class WindowsPrintJob : IDisposable
Constructors
WindowsPrintJob()
Initializes a new instance of the WindowsPrintJob class
Declaration
public WindowsPrintJob()
WindowsPrintJob(PrinterSettings)
Initializes a new instance of the WindowsPrintJob class with the specified printer settings.
Declaration
public WindowsPrintJob(PrinterSettings printerSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| PrinterSettings | printerSettings | The printer settings which provides info about the target printer. |
Properties
PrinterSettings
Gets or sets information about the printer used for printing.
Declaration
public PrinterSettings PrinterSettings { get; set; }
Property Value
| Type | Description |
|---|---|
| PrinterSettings |
Methods
Dispose()
Declaration
public void Dispose()
Implements
PrintImage(List<Byte[]>, Int32, String, Double, Double)
Starts the printing process by sending the specified Images to the specified printer.
Declaration
public void PrintImage(List<byte[]> EPLPrinterOutput, int copies = 1, string documentName = "", double marginLeft = -1, double marginTop = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<System.Byte[]> | EPLPrinterOutput | The Image output from a EPLPrinter object. |
| System.Int32 | copies | The number of copies of the label to print. Default is 1. |
| System.String | documentName | The name of the document to print shown by the Windows print queue. Default is an empty string. |
| System.Double | marginLeft | The left margin (in inch units) when printing an image label. Default is -1 which means the label is printed horizontally centered. |
| System.Double | marginTop | The top margin (in inch units) when printing an image label. Default is -1 which means the label is printed vertically centered. |
PrintRawCommands(List<Byte[]>)
Starts the printing process by sending the raw commands to the specified printer.
Declaration
public void PrintRawCommands(List<byte[]> EPLPrinterOutput)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<System.Byte[]> | EPLPrinterOutput | The raw commands output from a EPLPrinter object. |