reportlite_export()

Description:

Export a ReportLite report/report group file as BLOB data or HTML source code string.

Syntax:

reportlite_export(rpt)

Note:

External library function (See The Programmer’s Reference).

 

The function exports a ReportLite report/ report group file as a PDF, docx, xlsx, xls, rptr file stored as BLOB format; or as a HTML file and returns HTML source code strings. By default, it exports as a rptr file stored as BLOB format. The priority order of options is @p>@d>@x>@h.

 

The function can only work with @p, @d, @x and @h options when exporting a report group file.

Parameter:

rpt

A report object.

Option:

@p

Export as a pdf file paginated by default and stored as BLOB data.

@d

Export as a docx file stored as BLOB data.

@x

Export as an xlsx file paginated by default and stored as BLOB data.

@h

Export as source code string of an HTML file.

@n

Export as a non-paginated file stored as BLOB format; need to work with @p or @x.

@s

Export as an xls file stored as BLOB format; need to work with @x.

@f

Export as an Excel file with formulas and stored as BLOB format; need to work with @x or @xs.

Return value:

BLOB/HTML source code string

Example:

 

A

 

1

>reportlite_config("config\\raqsoftConfigReportLite.xml")

 

2

=reportlite_open("D:\\test.rptx")

 

3

=reportlite_run(A2)

 

4

=reportlite_export@p(A2)

Return a pdf file stored as BLOB format.

5

=file("D:\\test1.pdf").write@b(A4)

Write content of the pdf file stored as BLOB format to test1.pdf.

6

=reportlite_export@d(A2)

Return a docx file stored as BLOB data.

7

=file("D:\\test2.docx").write@b(A6)

Write content of the docx file stored as BLOB format to test2.docx.

8

=reportlite_export@x(A2)

Return a xlsx file stored as BLOB data.

9

=file("D:\\test3.xlsx").write@b(A8)

Write content of the xlsx file stored as BLOB format to test3.xlsx.

10

=reportlite_export@h(A2)

Return source code string of the HTML file.

11

=file("D:\\test4.html").write@b(A10)

Write HTML’s source code string to test4.html.

12

=reportlite_export(A2)

By default, return a rptr file stored as BLOB data.

13

=file("D:\\test5.rptr").write@b(A12)

Write content of the rptr file stored as BLOB format to test5.rptr.