Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Report
Message
General information
Forum:
Visual Basic
Category:
Other
Title:
Miscellaneous
Thread ID:
00313075
Message ID:
00313140
Views:
37
Winarto,

The most reliable way to export reports in TXT (or HTML) is to use the Data Report built into VB6 now (since it doesn't require a OCX). Then use the code

MyReport.ExportReport rptKeyText, cFileName, True, False, rptRangeAllPages

Or for HTML:
MyReport.ExportReport rptKeyHTML, cFileName, True, False, rptRangeAllPages

The data report is relatively simple to use and displays and works like a
form.

HTH,
Ed

>I have a Programe in VB that prints a report to file using common dialog (ShowPrinter method), when i open the file with notepad, i can't read the file ? Why ? How can i suppose to do if i want the report in the file is readable just like i print the report to printer ? Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform