Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SaveToFile - method of object PmReport

Description:
Saving the output report into a file.
Syntax:
SaveToFile(sFile As String, sParams As String) As Boolean
Calling:
bResult = oReport.SaveToFile(sFile, sParams)
Parameters:
sFile(String) Path to the output report file.

It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.

sParams(String) Allows to set the value of report parameters. These parameters are then accessible in the pEvent.Pars parameter in onReportRequest event. Each parameter consists of an identifier and a value.

Syntax: "par:name1=value1;par:name2=value2; ...".

The static default sParams parameter values can be set in the configurator PmReport > Report > sParams default value. In such case the static default setup of the object is combined with the entries provided dynamically. If the same information is present on both places, the dynamical information provided at viewer opening is preferred by the system.

Return Values:
true - Saving into a file has been completed successfully.
false - Saving into a file has failed.
Note:
The way of output report update, see the manual and automated way in PmReport.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice