Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Information sheet not printed at the right position in Excel Export

$
0
0
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.
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?

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>