Hi ,
I am trying to appending row data to a existing excel file via x++ code. While trying to append rows, the process is working fine but atlast the datas are not added to the excel. The iteration are executing correctly while debuging. But i think saving the file with memoryStream is happening some issue. Can anyone help me in this.
Thanks Martin, Actually It worked
Will it change if you save it to another stream with SaveAs()?
using (System.IO.MemoryStream outputStream = new System.IO.MemoryStream()) { package.SaveAs(outputStream); File::SendFileToUser(outputStream, 'test.xlsx'); }
Hi Anoop, I am not sure but can you try moving package.Save() inside the loop before i++.
Check this article
www.d365snippets.com/.../how-to-create-and-export-excel-files-using-xpp-in-d365.html
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,853
Most Valuable Professional
nmaenpaa
101,156