Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Print Barcode in SSRS Report

(0) ShareShare
ReportReport
Posted on by 190

Hello everyone,

I have a requirement to print Barcodes on a SSRS Report. 

I have Created the field Barcode in MyTmpTable, EDT:BarcodeString. 

I fullfill the field in processReport method Of MyDPClass as following:

MyTmpTable.Barcode = this.showBarcode(string);

where string is the string that needs to be coded. In the showBarcode method i have the following code:

public BarCodeString showBarcode(str _barcode)
{
Barcode barcode;

barcode = Barcode::construct(BarcodeType::Code39);
barcode.string(true, _barcode);
barcode.encode();

return barcode.barcodeStr();
}

Then, on Visual Studio I have:

7343.Capture.PNG

The problem is that when it prints, it prints only the barcode:

10071.Capture1.PNG

It does not print the value of the string below the barcode, as it should be printed.

3124.Capture2.PNG

I have tried with debug and the field MyTmpTable.Barcode takes the right value(*690214*), but on the report it shows only the barcode.

Can Anyone give any suggestion, why it prints only the barcode, and not its value below?

Thanks in advance! 

*This post is locked for comments

  • Rafael Araujo Profile Picture
    Rafael Araujo 170 on at
    RE: Print Barcode in SSRS Report

    Hi Eva,

    Did you find the solution? If yes, could you add the solution here? Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans