If you are unable to create a new account, please email support@bspsoftware.com

 

is there Function / Macro / variable identifies Runmode of Report ?

Started by rcflyboyjr, 23 Aug 2021 11:19:20 AM

Previous topic - Next topic

rcflyboyjr

Trying to automatically determine if the user runs the report in PDF , Excel , HTML etc from the drop down.
The page format and layout differs so much from PDF to HTML Print out i want to present differnt page

Short of making the user select the mode they are running in I cant find anything that identifies this.

Penny

There is a reporting function that will return a value indicating the output format of the report run.  We use it in some cases where the output is different for different formats and use it in a boolean variable definition that is used to render a particular page (page property called Render Variable under Conditional heading - right near the top).

ReportOutput ()
Returns the name of the output format, such as CSV, HTML, HTMLFragment, layoutDataXML, MHT, PDF, rawXML, spreadsheetML (Excel 2007 format), XHTML, xlsxData (Excel 2007 Data format), XLWA (Excel 2002 format), XML, singleXLS (deprecated), XLS (deprecated).

dougp

To display the report output format on the report, add a layout calculation and try these functions:

ReportOutput()
ReportOption ('outputFormat')