hi
I need to create a report, which export all data of the particular report in separate sheets of the same workbook in excel.
means if i have two field like "No. " ans description, then
i need separate sheet for each "No." and "description."
No. Description
A1 abcdef
in one sheet
A2 123456 in another sheet in the same Excel .
0
Comments
Microsoft - Dynamics NAV
If Excel.CreateAnotherSheet THEN
InsertData INTO WHERE Required();
=D>
Microsoft Certified Business Management Solutions Professional
Microsoft Certified Business Management Solutions Specialist
http://www.navisiontech.com
For example, adding a sheet:
xlApp.ActiveWorkbook.Sheets.Add();
xlWorkSheet3 := xlApp.ActiveSheet;
xlWorkSheet3.Name := FORMAT(Text002) + CONVERTSTR("Analysis View Code",' -+','___');
xlWorkSheet3.Range('A1').Value := AnalysisView.TABLECAPTION;
xlWorkSheet3.Range('B2').Value := Rec.FIELDCAPTION("Analysis View Code");
... and so on.
Microsoft - Dynamics NAV
how to make after the export, the excel file doesn't opened automatically?
thanks
some example of this can be seen in the excel buffer table
for example:
XlApp.Visible(FALSE); //when creating the xlapp variable
//when finished exporting
XlWrkBk.Close(FALSE);
XlApp.Quit;