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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement