Write a report with no visual display?

Posted by: jbaima-npsinet-com on 4 August 2017, 2:51 pm EST

  • Posted 4 August 2017, 2:51 pm EST

    I would like to write a series of reports to a file without displaying them. Is there a way to do that? Thanks.
  • Replied 4 August 2017, 2:51 pm EST

    Yes ActiveReports comes with several export filter DLLs that can convert their reports into various files structures such as PDF, XLS, TIFF, and HTML to name the most popular. You could also use their native RDF file format and viewer control as well.
  • Replied 4 August 2017, 2:51 pm EST

    Sorry if this is a dumb question, but we normally make a ARViewer2 object and then send the run message. If we just have the non-visual report object, what messages do we send it and in which order to just create the PDF files? Is there sample code for this?

  • Replied 4 August 2017, 2:51 pm EST

    The DataDynamics team has a solid help file system, they have a complete section on using there export filters. http://www.datadynamics.com/Help/AR2Exports/AR2Exports_start.htm

    The following is an example of code that I use...

    <FONT face="Courier New">Dim rptReport As New ActiveReport1
    Dim oPDF As New ActiveReportsPDFExport.ARExportPDF</FONT>

    <FONT face="Courier New">With oPDF
       .FileName = "C:\Test.PDF"
       .JPGQuality = 50
       rptReport.Run False
       .Export rptReport.Pages
    End With
    Set oPDF = Nothing</FONT>

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels