

Sometimes the field displaying the barcode is not wide enough in the report designer. Make sure that there is at least 1/4 inch of white space on either side of the barcode. If there is no white space before or after the barcode, it might not scan properly. You should test the scanner using a barcode of the same type that was produced by a source other than your report.Īdjust white space before and after the barcode. Code 39) and make sure that it’s properly configured. If you’re producing barcodes which fail to scan properly, try the following suggestions.Ĭonfirm that your barcode scanner is working properly.įirst, confirm that your scanner is capable of reading the barcode type you’ve selected (e.g. Printing barcodes is fairly simple as you can see, but there are some pitfalls. Those characters will be added automatically by the barCode() method. However, note that you do NOT need to provide these asterisks when supplying data for the barcode field within your AX report. This is a requirement of the Code 39 specification. Notice that leading and trailing asterisks surround the test data value. Create a Word document with test data “COD”. You can also verify that the barcode font is properly installed on your workstation by using Microsoft Word. For this example, let’s generate a Code 39 barcode for the value “COD”.Ĭompare the sample with the corresponding barcode from your report.
#MORPHX WIKI GENERATOR#
You can use a free online barcode generator to produce a sample barcode with the data you specify. Run the report and send the output to the screen. Second, some properties are set on the Barcode string control. First, the barCode() method encodes the field’s data (PaymTermId) in the proper format.īarcode = Barcode::construct(BarcodeType::Code39) īarcode.string(true, PaymTerm_1.PaymTermId) Import Report_SampleBarcodeReport.xpo into your Dynamics AX 2009 test instance and then open it from the AOT. In case you don’t have this font, you can download BC C39 3 to 1 HD font.zip. The exact installation location for the font might vary by operating system, but it usually can be found at: In our example, we’ll be using BC C39 3 to 1 HD font. The workstation where barcodes will be printed must have the appropriate font installed. The PaymTerm.PaymTermId field and its barcode format are shown on the report.
#MORPHX WIKI HOW TO#
This post demonstrates how to display data as a barcode within a report.
