Power BI and SSRS barcode font encoder for Code 128
Generate Code 128 and other barcodes in Power BI paginated reports and SSRS with custom report code and the Universal Barcode Font.
What it covers
Report code that creates barcodes with fonts and needs no outside components.
- Works with Power BI Report Builder and Power BI Paginated Reports
- Also works with SSRS, Business Central document layouts and Dynamics 365 F&O reports
- Embedded in the report, with royalty-free source code
- Example RDL files included for reference
- Included with every Developer License
Six steps to a barcode in your report
Summarized from IDAutomation’s SSRS and Power BI barcode font encoder tutorial (opens in a new tab).
- Install the fontInstall the appropriate barcode font by running the setup file from the font package.
- Open the custom code areaIn Visual Studio use Report, Report Properties, Code. In Report Builder create a new report and open Report Properties.
- Paste the encoderOpen the encoder text file for your barcode type, copy its contents and paste them into the custom code area.
- Add a text boxAdd a text box sized large enough for the barcode, and center the paragraph to create a quiet zone.
- Enter the expressionRight-click the text box, choose Expression and call the encoder function with your field, such as the Code 128 function with a field value.
- Set the fontSet the text box font to the matching barcode font and point size, then run the report and verify the barcode.
Frequently asked questions
Which products does the encoder work with?
SSRS Report Builder 3 and later, Power BI Report Builder and Power BI Paginated Reports, Business Central document layouts, Dynamics 365 F&O reports, Visual Studio Report Designer 2008 R2 and later, RDLC report designers and other tools that use RDL or RDLC files.
Which barcode types are supported?
Code 128, GS1-128, Code 39, DataBar, ITF, UPC, EAN, USPS IMb, Aztec, Data Matrix ECC200, GS1-DataMatrix, QR Code, GS1-QRCode, PDF417 and others.
Does it need dependencies?
No. It is custom report code that stays embedded in the report when distributed, and it includes royalty-free source code.
Which license includes it?
It is included with every Developer License for any IDAutomation barcode font package. Earlier purchasers need an active Level 2 Support and Upgrade Subscription.
What if the data is not text?
Convert the field to a string first, for example with ToString.
Barcodes in your paginated reports
Order the font with a Developer License to use the SSRS and Power BI encoder.