Class ZplExport
Represents the Zpl export filter.
Inheritance
Implements
Inherited Members
Namespace: FastReport.Export.Zpl
Assembly: FastReport.dll
Syntax
public class ZplExport : ExportBase, IComponent, IDisposable, IFRSerializable
Constructors
ZplExport()
Initializes a new instance of the ZplExport class.
Declaration
public ZplExport()
Properties
BarcodeScale
Sets the scale barcode size.
Declaration
public float BarcodeScale { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
CodePage
Sets the code page of document. Default is UTF-8 (^CI28).
Declaration
public string CodePage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Density
Sets the density of printer.
Declaration
public ZplExport.ZplDensity Density { get; set; }
Property Value
Type | Description |
---|---|
ZplExport.ZplDensity |
FontScale
Sets the scale font size.
Declaration
public float FontScale { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
PageInit
Sets the string for sending before printing each page.
Declaration
public string PageInit { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PrintAsBitmap
Enable or disable export as bitmap.
Declaration
public bool PrintAsBitmap { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
PrinterFinish
Sets the string for sending after printing the document.
Declaration
public string PrinterFinish { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PrinterFont
Sets the Printer Font, default value is "A".
Declaration
public string PrinterFont { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PrinterInit
Sets the init string for sending before printing the document.
Declaration
public string PrinterInit { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Version
Gets or sets the version of ZPL.
Declaration
public ZplExport.ZplVersions Version { get; set; }
Property Value
Type | Description |
---|---|
ZplExport.ZplVersions |
Methods
ExportBand(BandBase)
This method is called for each band on exported page.
Declaration
protected override void ExportBand(BandBase band)
Parameters
Type | Name | Description |
---|---|---|
BandBase | band | Band, dispose after method compite. |
Overrides
ExportPageBegin(ReportPage)
This method is called at the start of exports of each page.
Declaration
protected override void ExportPageBegin(ReportPage page)
Parameters
Type | Name | Description |
---|---|---|
ReportPage | page | Page for export may be empty in this method. |
Overrides
ExportPageEnd(ReportPage)
This method is called at the end of exports of each page.
Declaration
protected override void ExportPageEnd(ReportPage page)
Parameters
Type | Name | Description |
---|---|---|
ReportPage | page | Page for export may be empty in this method. |
Overrides
Finish()
This method is called when the export is finished.
Declaration
protected override void Finish()
Overrides
GetFileFilter()
Returns a file filter for a save dialog.
Declaration
protected override string GetFileFilter()
Returns
Type | Description |
---|---|
System.String | String that contains a file filter, for example: "Bitmap image (.bmp)|.bmp" |
Overrides
Serialize(FRWriter)
Serializes the object.
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |
Overrides
Remarks
Do not call this method directly. You should override it if you are developing a new component for FastReport.
This method is called when the object needs to save the state. It may happen when:
- saving the report to the file or stream;
- saving the report to the designer's undo buffer;
- assigning the object to another object using the Assign(Base) or AssignAll methods;
- saving the object to the designer's clipboard;
- saving the object to the preview (when run a report).
ShowDialog()
Displays a dialog with export options.
Declaration
public override bool ShowDialog()
Returns
Type | Description |
---|---|
System.Boolean | true if dialog was closed with OK button. |
Overrides
Remarks
Before calling this method, set the report.
Start()
This method is called when the export starts.
Declaration
protected override void Start()