Promotic

SaveToFile - method of the PmaReport object

Description:
Saving the report into the file.
Syntax:
Boolean SaveToFile(String sFile, String sParams)
Parameters:
sFile(String) Path to the report file.
It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.
sParams(String) It allows to set the value of the report parameters. These parameters are then accessible in the pEvent.Pars parameter of the onReportRequest event.
Each parameter consists of an identifier and a value.
Syntax: "pars:{name1:value1;name2:value2; ...}".
Static default values of the sViewPars parameters can be set in the "PmaReport > Report > sViewPars default value" configurator. In this case the static default setting of the object is combined with the entries provided dynamically. If the same information is present on both places, then the dynamical information provided at viewer opening is preferred by the system.
Return value:
true - on success
false - on error
Note:
The way of the report update see PmaReport - Deatiled object description.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oReport = pMe.Pm("/Report");
var bSave = oReport.SaveToFile("#data:report.htm", "");
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.