Barcode printing solutions garbled

When you print bar codes in the report, sometimes you found shot garbled, even if the standard system!
When setting up a print bar codes, corresponding StringEdit has two properties Note: Font and DataMethod, beginning with the BC bar code font is, if the Font setting: "BC C128 HD Wide" DataMethod you will need to set the corresponding "BarcodeEAN128 . "

BarCode can learn how to use reference Report: AssertBarcode
in determining the BarCode font we want to use, you can use the following code directly BarCode:

BarcodeCode39 barcode;
;
barcode = Barcode::construct(BarcodeType::Code39);
//is it needed to validate this barcode before print?
barcode.clear();
barcode.string(true,strltrim(strrtrim(num2str(this.OprNum,10,0,1,0))));
return barcode.barcodeStr();

BarCode system is that all the parent class barcode, there are many different sub-classes below it, as long as we declare a corresponding class, and for using ENUM value returned construct corresponding configuration instance, we have to then pass into the barcode string to this example, read a bar code on it.

Sometimes garbled, I found that everything is correct when checking code and attributes. This problem arises because there are several possibilities:

  1. Font type required does not exist in the client or server side
    2. The client operating system and server operating systems, resulting in different character sets
    Solution:
    First, ensure that the client and server have this font, then change the call RunOn property MenuItem report is "Called from" (change the operating system is clearly unrealistic!).

Guess you like

Origin www.cnblogs.com/xtwkh1973/p/10986145.html