Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

The instances of the XFRXListener class can be chained together as well as with other report listeners so that multiple output formats could be generated by one REPORT command. The following example creates XFRXListener objects for HTML and PDF documents and chains them together with FFC’s UpdateListener to display a progress bar during the report execution. This approach ensures that the HTML and PDF documents will contain exactly the same output (if there were two successive report runs, the data could have been modified).

LOCAL loObj, loObj2, loObj3
loObj = xfrx("XFRX#INIT")
      loObj.targetType = "HTML"
      loObj.targetFileName = "invoices.htm"
     
loObj2 = xfrx("XFRX#INIT")
      loObj2.targetType = "PDF"
      loObj2.targetFileName = "invoices.pdf"
      loObj.successor = loObj2
     
loObj3 = NEWOBJECT("updatelistener", "_reportlistener.vcx")
loObj3.thermFormCaption = "Report in progress ..."
      loObj2.successor = loObj3
 
      REPORT FORM myReport object loObj
  • No labels