How to export datas to multiple sheets in excel from nav?

chandrurecchandrurec Member Posts: 560
Hi all,

I am trying to export the datas to excel for each location and my structure of report is as follows.

Location
Sales Invoice Line

Link between location and sales invoice line is location code.

I have added the function addsheet as I read in the previous post in excel buffer table.

When I try to export to excel, I can able to generate the 2 sheets with different location code but the problem is first sheet contains the data of 2 locations and 2 sheet contains the data of respective location.

But actually I need only the respective location data to come in respective sheets in excel.

So for this to happen I have added the code
ExcelBuf.DELETEALL(false); in the sales invoice header OnPostDataItem trigger but still I am getting the same output.

If anyone knows how to put the respective data in respective sheets , kindly let me know.

Thanks in advance.

Regards,
chandru.
Sign In or Register to comment.