Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

QR Code in ax 2009

(0) ShareShare
ReportReport
Posted on by 181

Hi dears, 

I want to create QRCode in AX 2009 

I try this method and it's not working  

https://community.dynamics.com/365/financeandoperations/b/dynamicsofax/posts/generating-qr-codes-in-ax-2009

can you please tell how to Create QR Code 

thanks, 

  • Acer Profile Picture
    75 on at
    RE: QR Code in ax 2009

    I dont know if this is any help but we made our own 2D code generator in a dll (small task for a .Net developer)

       Image               image = new Image();

       BinData            binData;

       str                     strImageBase64;

       ;

       strImageBase64 = Ax.Net.Barcode::GenerateQRBase64("Text to put in the QR code", 300, 300, 600);  // size and dpi added after the text

       binData = new BinData();

       binData.setData(BinData::loadFromBase64(strImageBase64));

       binData.saveFile(variableWithATempPath);

       image = new Image();

       image.setData(binData.getData());

       // QRBarcode is a Window control on a form

       QRBarcode.imageResource(0);

       QRBarcode.imageName(variableWithATempPath);

    As you can see first you make the .Net dll create the strBase. Then you create binarydata object which you save at a temp path.

    Then you tell the Window on the form to load that binardata file.

  • Suggested answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: QR Code in ax 2009

    An exception occurred while creating the .NET object. This is a very common error, but most likely, it cannot see the MessagingToolkit.QRCode.dll.

    If your codes is running on the server side, don't forget to add the dll. Also, if you're working on a different machine, don't forget to add the dll to the client/bin folder.

  • Abd Alsameea Nat Profile Picture
    181 on at
    RE: QR Code in ax 2009

    Thanks for replay

    this is the Error "object-clrobject-could-not-be-created"

    I tried to use these also I'm facing the same problem

  • Suggested answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: QR Code in ax 2009

    What do you mean by not working? Are you getting an error? It will be easier for us to help you if you explain your situation.

    It is usually caused by illegal characters, I recommend you to review the data.

    You can check the links below.

    community.dynamics.com/.../839628

    sysirfan.blogspot.com/.../x-code-to-print-qr-code-ax2009-called.html

    programmerall.com/.../

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,907 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,777 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans