Accusoft BarcodeXpress v13.9 - Updated
PrintBarcode Method
AccusoftBarcodeXpress13 ActiveX DLL > BarcodeXpress Object : PrintBarcode Method
The printer device context (DC).
The x-coordinate position of the upper, left corner of the barcode image, in printer units.
The y-coordinate position of the upper, left corner of the barcode image, in printer units.
Description
Prints a barcode to a printer Device Context (DC).
Syntax
Visual Basic
Public Sub PrintBarcode( _
   ByVal hDC As Long, _
   ByVal X As Long, _
   ByVal Y As Long _
) 
Parameters
hDC
The printer device context (DC).
X
The x-coordinate position of the upper, left corner of the barcode image, in printer units.
Y
The y-coordinate position of the upper, left corner of the barcode image, in printer units.
Remarks

The printer units are pixels or dots/inch. For example, on a 300 dpi printer, setting the X and Y parameters to 300 would position the barcode one inch from the upper left side of the paper.

The barcode is printed using the resolution of the printer. This means that a barcode that looks correct (in terms of size) on a monitor (e.g. 72 dpi) might print very small depending on the resolution of the printer (e.g. 300 dpi). An easy way to compensate for this is to change the bar size (MakeBarcodeBarSize) and the barcode height (MakeBarcodeHeight) to a larger value when printing the barcode.

The PrintBarcode method is essentially the same as the MakeBarcode method, with different output. See the MakeBarcode method description for details on creating barcodes.

See Also

BarcodeXpress Object  | BarcodeXpress Members

Is this page helpful?
Yes No
Thanks for your feedback.