Date: Fri, 29 Mar 2024 15:39:17 +0000 (UTC) Message-ID: <298974360.23.1711726757435@4e8f765cc893> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_22_1544462730.1711726757434" ------=_Part_22_1544462730.1711726757434 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The instances of the XFRXListener class can be chained together = as well as with other report listeners so that multiple output formats coul= d be generated by one REPORT command. The following example creates XFRXLis= tener objects for HTML and PDF documents and chains them together with FFC= =E2=80=99s UpdateListener to display a progress bar during the report execu= tion. This approach ensures that the HTML and PDF documents will contain ex= actly the same output (if there were two successive report runs, the data c= ould have been modified).
LOCAL m.= loObj, m.loObj2, m.loObj3 m.loObj =3D xfrx("XFRX#INIT") m.loObj.targetType =3D "HTML" m.loObj.targetFileName =3D "invoices.htm" =20 m.loObj2 =3D xfrx("XFRX#INIT") m.loObj2.targetType =3D "PDF" m.loObj2.targetFileName =3D "invoices.pdf" m.loObj.successor =3D m.loObj2 =20 m.loObj3 =3D NEWOBJECT("updatelistener", "_reportlistener.vcx") m.loObj3.thermFormCaption =3D "Report in progress ..." m.loObj2.successor =3D m.loObj3 =20 REPORT FORM myReport OBJECT m.loObj