Category: AX 2012 Codes

Write Data from Ax table to Excel Sheet x++

Static server void Salah_WriteFile(Args _args) { TextIo file; Filename filenmae= @”C:/Temp”; Salah_CarTable carTable; container con; FileIOPermission permission; #File try { // Create the permission class permission = new FileIoPermission(filename, #io_write);   // Add a request for permission before new TextIo() permission.assert();   // Create the TextIo object file = new TextIo(filename, #io_write);   if (!file)…