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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only