Hi dears,
I want to create QRCode in AX 2009
I try this method and it's not working
can you please tell how to Create QR Code
thanks,
Hi dears,
I want to create QRCode in AX 2009
I try this method and it's not working
can you please tell how to Create QR Code
thanks,
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.
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.
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
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
André Arnaud de Cal...
292,907
Super User 2025 Season 1
Martin Dráb
231,777
Most Valuable Professional
nmaenpaa
101,156
Moderator