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?

    -John
  • 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
    http://www.datadynamics.com/Help/AR2Exports/HX_Common_Method_Export.html


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


    Dim rptReport As New ActiveReport1
    Dim oPDF As New ActiveReportsPDFExport.ARExportPDF


    With oPDF
       .FileName = "C:\Test.PDF"
       .JPGQuality = 50
       rptReport.Run False
       .Export rptReport.Pages
    End With
    Set oPDF = Nothing

Need extra support?

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

Learn More

Forum Channels