Posted 4 August 2017, 2:51 pm ESTI would like to write a series of reports to a file without displaying them. Is there a way to do that? Thanks.
Write a report with no visual display?
Posted by: jbaima-npsinet-com on 4 August 2017, 2:51 pm EST
Replied 4 August 2017, 2:51 pm ESTYes 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 ESTSorry 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...
Dim rptReport As New ActiveReport1
Dim oPDF As New ActiveReportsPDFExport.ARExportPDF
.FileName = "C:\Test.PDF"
.JPGQuality = 50
Set oPDF = Nothing