Hi All,
Any updates on the e-Invoicing functionality availability for AX2012R3 for Saudi Arabia.
As per the TAX department, it will be mandatory from Dec 2021
Appreciate any updates on the same.
Thanks
Riyas
Hi All,
Any updates on the e-Invoicing functionality availability for AX2012R3 for Saudi Arabia.
As per the TAX department, it will be mandatory from Dec 2021
Appreciate any updates on the same.
Thanks
Riyas
Hi Tony,
Make sure copy MessagingToolkit.QRCode.dll and paste in Dynamics AX client/Server directory. Then restart AOS it will work.
Let me know if you face any problem.
regards,
Faiz
Dear faiz7049 ,
I got " Variable MessagingToolkit has not been declared. "
Should I add some reference to solve it ?
Kindly note that I am wroking on ax2012 CU8
Thanks
Hi Riyas,
If issue has been resolved. Kindly mark as a verify answer.
Hi Rikas,
Verify answer if issue resloved will help to other in community.
Thanks,
Faiz
Hi Riyas,
As mentioned in shared post that before run a Sales report restart AOS and Full Compile the application.
Did you do? If not, try it.
Thanks
Faiz
Hi, The error before got rectified. But, once I run the sales invoice report, the below error shows up.
Assembly containing type MessagingToolkit.QRCode.Codec.QRCodeEncoder is not referenced.
Object 'CLRObject' could not be created
Hi Riyas,
Please update about error which you was getting before. If error resolved please verify answer.
Thanks,
Faiz
Hi Riyas,
What error you are getting?
Use below code.
display container qrcode() { Bindata bindata = new Bindata(); Image Imgobj; FileIOPermission perm = null; System.Drawing.Image img; System.Drawing.Bitmap obj; Filename filename; Filepath _path; container con; str GRate,CustName,CustNumber,GTot,PONox,Company,Amount1,InvDate1,SalesOrder; real Amount; date InvDate; MessagingToolkit.QRCode.Codec.QRCodeEncoder encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder(); ; CustNumber=this.custTable_InvoiceAccount().AccountNum; CustName=this.custTable_InvoiceAccount().name(); Company=this.custTable_InvoiceAccount().company(); InvDate= this.InvoiceDate; Amount = this.InvoiceAmountMST; SalesOrder=this.SalesId; InvDate1=date2str(InvDate,123,2,DateSeparator::Dot,2,DateSeparator::Dot,4,0); Amount1=num2str(Amount,2,2,1,0); obj = new System.Drawing.Bitmap(encoder.Encode("Cust No:" CustNumber "Cust Name: " CustName " Date: " InvDate1 " Amount: " Amount1 " Seller: " Company)); filename = @"C:\temp\newPhoto.bmp"; perm = new FileIOPermission(filename, 'RW'); perm.assert(); //obj = encoder.Encode(CustName); obj.Save(filename,System.Drawing.Imaging.ImageFormat::get_Bmp()); bindata.loadFile(filename); con = bindata.getData(); return con; }
Thanks,
Faiz
I'm not sure if it was an error while typing here, but there is no dot between QRCodeEncoder and encoder.
Other than that, I noticed that he/she didn't add the dll as a reference to the ax in the link, don't skip it.
Depending on where you used it, you may need to put it in folders on the server or in the GAC.
Lastly, If you share the error, we can help you fix it.
Hi faiz7049, can you please check the code in the above link. The display method class, on compile shows error in the line :
MessagingToolkit.QRCode.Codec.QRCodeEncoder.encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder();
Any Ideas?
Riyas
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156