Hello,
when creating an Excel export I have the following, annoying problem: A report with a sheet for the data and a sheet for the information is to be created as cover sheet. Basically, this works, but unfortunately the cover sheet is not printed to the left of the sheet with the data, instead it ist printed to the right (as second sheet).
Here is the code to control the whole.
The data header is generated in the OnAfterGetRecord trigger of the controlling DataItem.
I have made a few attempts to change the order of the output, without success, either it does not come out at all, or the sheets are output in the order described. Anyone an idea?
when creating an Excel export I have the following, annoying problem: A report with a sheet for the data and a sheet for the information is to be created as cover sheet. Basically, this works, but unfortunately the cover sheet is not printed to the left of the sheet with the data, instead it ist printed to the right (as second sheet).
Here is the code to control the whole.
OnPostReport ()
IF gboExportToExcel THEN BEGIN
Make Excel Info;
ExcelBuf.SetUseInfoSheet;
ExcelBuf.CreateBook ( '', 'test');
ExcelBuf.WriteSheet ( 'test', COMPANY NAME, USERID);
ExcelBuf.CloseBook;
ExcelBuf.SetFriendlyFilename ( 'test');
ExcelBuf.OpenExcel;
ExcelBuf.GiveUserControl;
END;
The data header is generated in the OnAfterGetRecord trigger of the controlling DataItem.
I have made a few attempts to change the order of the output, without success, either it does not come out at all, or the sheets are output in the order described. Anyone an idea?