Export to TXT, RTF, and PDF from Active Reports

Category:
Miscellaneous
Type:
Snippets
Difficulty:
Intermediate
Author:
Raney Eden

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
This code can be pasted into any ActiveReport file (created with ActiveReports reporting tool ... free demo on http://www.datadynamics.com). Simply paste the code into your report. You will be exporting files in less than a minute!!!

INSTRUCTIONS: You must have ActiveReports, and you must add a form to your project and name it "fExport", and draw a common dialog control and name it "dlgCommon"...then go to project references in visual basic and make sure the ActiveReports PDF, TXT, and RTF filters are selected. Then paste in the code!!!

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: