Hi Friends,
Recently I worked on a task to generate and show QR code on a report in AX 2009.
In order to do this, I did the below steps:
There are many other dll files available as open source to generate QR code. Keep sharing.
Reference: I found a link to do the same on AX2012
Recently I worked on a task to generate and show QR code on a report in AX 2009.
In order to do this, I did the below steps:
- Downloaded file MessagingToolkit.QRCode.dll
- Copied it in client\bin folder
- Added this dll file in the system references
- Create a new display method on the report. The below code can be used to generate QR code.
{
Bindata bindata = new Bindata();
Image Imgobj;
System.Drawing.Image img;
System.Drawing.Bitmap obj;
Filepath _path;
container con;
MessagingToolkit.QRCode.Codec.QRCodeEncoder
encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder();
;
obj = new
System.Drawing.Bitmap(encoder.Encode("TESTSTRING"));
obj.Save(@"C:\temp\newPhoto.bmp",System.Drawing.Imaging.ImageFormat::get_Bmp());
bindata.loadFile(@"C:\temp\newPhoto.bmp");
con = bindata.getData();
return con;
}
- Add the image control on the report based on the display method.
There are many other dll files available as open source to generate QR code. Keep sharing.
Reference: I found a link to do the same on AX2012
Please help me I am facing a problem when the string to be encoded is very long. Is there any string limit for which we are passing.
ReplyDeleteHi,
DeleteAre you getting the solution for this as we are also stuck @ same point.
Pl. help.
Regards,
Amol.
MessagingToolkit.QRCode.dll I couldnot download correct one. Where is the link i get it.
ReplyDeleteThanks I solve problem.
ReplyDeleteProblem when string to be encoded is very long i.e. more than 110 characters. Is there any string limit for which we are passing?
ReplyDeleteHi, I had used
ReplyDeleteMicrosoft.Dynamics.QRCode.Encoder encoder = new Microsoft.Dynamics.QRCode.Encoder(); instead of the below code
MessagingToolkit.QRCode.Codec.QRCodeEncoder encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder();
This is not working for me, how can i sort out the issue.
MessagingToolkit.QRCode.dll I could not download correct one. Where is the link i get it.
ReplyDeleteplease help me how to download this file
Deletemy team is trying to create QR Code in Sales Invoice in AX2009. He is not able to see the reference page. Please help kranthiv@fli-me.com
ReplyDelete