Hi Experts,
By below code QR code is generated on Form grid whenever I type any text in Description field.
How to generate QR code in Sales invoice report.
Please guide me. I check processreport method in SalesInvoiceDP but there is only super method.
In QR code, I need to add Customer Name, Customer Code and Total Amount.
public void modified() { BinData binData = new BinData(); Image Imgobj; System.Drawing.Image img; System.Drawing.Bitmap obj; FilePath _path; MessagingToolkit.QRCode.Codec.QRCodeEncoder encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder(); super(); obj = new System.Drawing.Bitmap(encoder.Encode(SampleQRCode.Description)); obj.Save(@"C:\newPhoto.bmp",System.Drawing.Imaging.ImageFormat::get_Bmp()); _path="C:\newPhoto.jpg"; img = new System.Drawing.Bitmap(obj); binData.loadFile(@"C:\newPhoto.bmp"); SampleQRCode.QRCode=binData.getData(); }
Thanks,
Faiz