Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

RE: QR code in AX 2009

$
0
0

Thanks for reply Ernest,

Below is our display method, If i remove fields after SGSTPer (highlighted by orange colour) then it works fine but after inserting these extra fields we are facing the problem.

There is no any error occurs, simply executed without any output.

display container qrcode()

{

        Bindata bindata = new Bindata();

        Image Imgobj;

        System.Drawing.Image img;

        System.Drawing.Bitmap obj;

        Filepath _path;

 container con;

str Qty,InvDate,GRate,NRate,VendCode,GTot,PONo;

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

;

PONo = strDel(_custInvoiceJour.CustRefNo,11,20);

Qty = num2str(_CustInvoiceJour.Qty,2,2,1,0);

InvDate = date2str(_CustInvoiceJour.InvoiceDate,123,2,DateSeparator::Dot,2,DateSeparator::Dot,4,0);

GRate = num2str(_custInvoiceTrans.SalesPrice,2,2,1,0);

GTot = num2str((abs(LineAmount) + abs(_value) + Copy),2,2,1,0);

VendCode = DirOrganizationDetail::find(CustTable::find(_CustInvoicejour.OrderAccount).PartyId).OrgNumber;

NRate = num2str((_CustInvoiceTrans.lineAmountInclTax() / _CustInvoiceTrans.Qty),2,2,1,0);

obj = new System.Drawing.Bitmap(encoder.Encode(PONo+","+"10"+","+Qty+","+_custInvoiceJour.InvoiceId+","+InvDate+","+GRate+","+NRate+","+VendCode+","+_custInvoiceTrans.ItemId+","+CGST+","+SGST+","+"0.00"+","+"0.00"+","+CGSTPer+","+SGSTPer+","+"0.00"+","+"0.00"+","+"0.00"+","+GTot+","+_custInvoiceTrans.HSNCode));

obj.Save(@"C:\temp\newPhoto.bmp",System.Drawing.Imaging.ImageFormat::get_Bmp());

bindata.loadFile(@"C:\temp\newPhoto.bmp");

con = bindata.getData();

return con;

}


Viewing all articles
Browse latest Browse all 175888

Trending Articles