Home : Products : Barcode Studio : Faq


barcode-software.eu logo


Our very good another page : http://psoft.sk
May 25 2017
Updated Barcode studio for Delphi/C++ Builder, now support for Delphi 10.2 Tokyo
Supported : direct draw/print, Fast report, Report Builder, QuickReport
Torry Delphi Pages, very good source for developers

FAQ icon Barcode studio 2016

1.Q : How I can use Code128 A,B, or C ?A : BarcodeSymbology := bcCode128 only. TpsBarcodeComponent analyze TpsBarcodeComponent.Barcode property value and automatic optimize for best veraion A,B or C, or when mixed data switch versions dynamically in position where is this needed.
For more information please look to psBarcodeComp.pas, method TpsBarcodeComponent.Code128 ...

Examples :
Input dataEncoded as :
1234567890StartC, and encode as data pairs 12, 23, 56, 78, 90
12345StartC, encode as pairs 12, 34 , than switch to CodeA or CodeB and encode as simple character digit 5
1234ABCabc567890StartC, pairs 12, 34, thans automatic switch to CodeB, encode ABCabc and again switch to CodeC and encode 56, 78, 90 ....
http://psoft.skStartB and encoded http://psoft.sk
A#9b#9CStartB , encoded B,
2.Q : How can draw barcode on any canvas, form, printer ? A : Use function (located in psBarcodeComp unit)
// paint barcode on the TCanvas
procedure PaintBarCode(C:TCanvas; R:TRect; E:TpsBarcodeComponent);

// paint barcode using device context
procedure PaintBarCodeDC(dc:HDC; R:TRect; E:TpsBarcodeComponent);

// paint barcode using window handle
procedure PaintBarCodeHandle(HWnd:THandle; R:TRect; E:TpsBarcodeComponent);

or (from psBarcode unit)

procedure PaintBarCode(C:TCanvas; R:TRect; E:TpsBarcodeComponent); overload;

procedure PaintBarCode(C:TCanvas; R:TRect; E:TpsBarcode); overload;

procedure PaintBarCodeControl(WinControl:TWinControl; R:TRect; E:TpsBarcodeComponent); overload;

procedure PaintBarCodeControl(WinControl:TWinControl; R:TRect; E:TpsBarcode); overload;

procedure PaintBarCodeHandle(HWnd:THandle; R:TRect; E:TpsBarcodeComponent); overload;

procedure PaintBarCodeHandle(HWnd:THandle; R:TRect; E:TpsBarcode); overload;

3.Q : How export barcode image A : Set psBarcodeComponent.Params.ExportBarcode property, set FileName, Height, Width ...

and then use one from TpsBarcodeComponent methods : function SaveToFile:Boolean;
function SaveAsBmp:Boolean;
function SaveAsWmf:Boolean; function SaveAsJpeg:Boolean;
{$ifdef PSOFT_GIF}
    function SaveAsGIF:Boolean;
    function SaveAsPNG:Boolean;
{$endif}

Note : jpeg, gif, png is depended on your Delphi version ...

If you have TpsBarcode, TpsBarcodeWinControl, TpsDBBarcode (XXX) is same, use TpsXXX.BarcodeComponent : TpsBarcodeComponent;




PageRank ikona zdarma