Forum Discussion
Cannot see barcode in powerbi Report Builder when uploaded to server
I can see the Bar code locally but when i run the report on server, I cannot see the bar code displaying in the report. Please help!.
Hi Anonymous ,
Please refer to support barcode formats:https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-mobile-barcodes#supported-barcode-formats
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
i was able to get this done.
used the online barcode api https://github.com/metafloor/bwip-js/wiki/Online-Barcode-API
i used image and in the expression used the URL
="https://bwipjs-api.metafloor.com/?bcid=code128&includetext&text="&Fields!barcode.Value- Anonymous5 years ago
For QR CODE It is "https://bwipjs-api.metafloor.com/?bcid=qrcode&includetext&text="&Fields!barcode.Value
9 Replies
- dpFr33Advocate II
Hi,
How do you generate the bar code? With a font?
If yes, the font file must be on the Power BI Report Server too.Regards,
Denis
- AnonymousNot applicable
Do you have a way to install bar code font on server?
- v-deddai1-msftCommunity Support
Hi Anonymous ,
Please refer to support barcode formats:https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-mobile-barcodes#supported-barcode-formats
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
- dubeyneerajFrequent Visitor
Are you able to see the Barcode in Report when Run on Server ?
- AnonymousNot applicable
I can't. I've research and found out API option but need to dig in more.
- dubeyneerajFrequent Visitor
i was able to get this done.
used the online barcode api https://github.com/metafloor/bwip-js/wiki/Online-Barcode-API
i used image and in the expression used the URL
="https://bwipjs-api.metafloor.com/?bcid=code128&includetext&text="&Fields!barcode.Value
- gneironiNew Member
There are another way without using and API, Font or Library:
1) decode the input value in a 0's and 1's string reprenting the value in code39 standar barcode sintax.
2) add a rectangle for each character in this new string. This rectangles must have the same width and need to be side by side.
3) add an expression to change the background color in each rectangle in order with the character in the string (0 = White, 1 = Black)
4) when rendering this provide as a readable and correct barcode in code39 standar.
I already made some implementation and works well.