Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

How to add QR Code In Free Text Invoice Report

Posted on by 175

Hi All,

I add this method 

```MessagingToolkit.QRCode.Codec.QRCodeEncoder encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder();```

this object Error is this field doesn't exist in table "AX 2009"

display container qrcode()
{
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
ewPhoto.bmp",System.Drawing.Imaging.ImageFormat::get_Bmp());
bindata.loadFile(@"C:\temp
ewPhoto.bmp");
con = bindata.getData();
return con;
}

regards 

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,995 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,610 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans