I'm trying to decipher the instructions in the manual for creating a report in Excel format. The manual says that I need to add "&export=format" to "the URL", but doesn't explain the context. It also lists a number of "options" that can be specified with the "dbr.export.options" command. But it doesn't say explicitly how and where to use these options. Right before the screenshot of "Examples" for the "dbr.export.options" command, it just says cryptically, "We have our data set."
My best guess is the following. Please let me know if this is correct. If so, I suggest that you put this into the manual:
[PROPOSED MANUAL ENTRY]
Here are the steps to create and export a report as an Excel document:
1. Create the stored procedure defining the report, as usual.
2. To control the format of the exported version of the report, add one or more export options to the stored procedure. Each option is specified in a single "select 'dbr.export.options', ..." statement in the stored procedure. (The export options will only affect the format of the report when it is exported, and will not affect how it appears when displayed in a web browser.)
3. Run the report, and note the report's URL in the browser's address bar.
4. Now add &export=xlsx to the URL, and re-request the page in the browser. This causes the report to be regenerated and exported in Excel format.
[/PROPOSED MANUAL ENTRY]
Is the above correct?
I would also like to place a button or link on the original report that links to the URL, so that the end user can easily export the report in the desired format. How can I do that?
Thanks!
Jan Hettich