Description:
Compute a ReportLite(group) file.
Sytnax:
reportlite_run(rpt, paramValue: paramName,....; ds: dsName,....)
Note:
An external library function (See ReportLite User Reference).
Parameter:
rpt |
ReportObject object |
paramValue |
Parameter value; can be absent |
paramName |
Parameter name; by default, write values in the order of parameters in the report |
ds |
A table sequence object; can be absent |
dsName |
Dataset name; by default, correspond table sequence objects and the original data sets in the report file one by one; the colon dsName before should not be omitted\ |
Return value:
Boolean
Example:
|
A |
|
1 |
>reportlite_config("config\\raqsoftConfigReportLite.xml") |
|
2 |
=reportlite_open("D:\\test.rptx") |
|
3 |
=reportlite_run(A2) |
Compute ReportLite file test.rptx that do not have parameters. |
4 |
=reportlite_open("D:\\test1.rptx") |
Report file test1.rptx has 3 parameters. |
5 |
=reportlite_run(A4,"abc":"arg1",12:"arg2","2016-01-02":"arg3") |
Compute a report file having multiple parameters. |
6 |
=reportlite_run(A4,"abc",12,"2016-01-02") |
When parameter paramName is absent, set parameter values according to the order of corresponding report parameters. |
7 |
=reportlite_open("D:\\stu.rptx") |
Report stu.rptx uses SCORES table in demo database; data set name is ds1. |
8 |
=connect("demo") |
|
9 |
=A8.query("select * from SCORES where SCORE<60") |
Return a table sequence. |
10 |
=reportlite_run(A7;A9:"ds1") |
Take data of table sequence A9 as report data set ds1’s result set. |
11 |
=reportlite_run(A7;A9:) |
When parameter dsName is absent, correspond table sequence objects and the original data sets in the report file one by one. |
Related function: