When you save a file with TQRPrinter.Save, the resulting file is a .QRP file which can only be opened in a QuickReport Preview screen. You can export to other file formats though, using a TQRExportFilter, e.g.
(QR2:)
QuickRep1.QRPrinter.ExportToFilter(TQRasciiExportFilter.Create(FileName));
QuickRep1.QRPrinter.ExportToFilter(TQRcsvExportFilter.Create(FileName));
QuickRep1.QRPrinter.ExportToFilter(TQRHtmlExportFilter.Create(FileName));
(QR3:)
QuickRep1.QRPrinter.ExportToFilter(TQRasciiExportFilter.Create(FileName));
QuickRep1.QRPrinter.ExportToFilter(TQRCommaSeparatedFilter.Create(FileName));
QuickRep1.QRPrinter.ExportToFilter(TQRhtmlDocumentFilter.Create(FileName));
本文地址:http://com.8s8s.com/it/it4956.htm