Re: Exporting a composite report
Tom Nesler <[email protected]> Thu, 17 Oct 2002 07:45:03 -0700 (PDT)
| Newsgroups | gmane.comp.lang.delphi.quick-reports |
|---|---|
| Message-ID | <[email protected]> |
Hi Omar! --- great_stones <[email protected]> wrote: > I have a composite report, yet it's fairly simple. When I try to > export it nothing happens! I've droped all the filters, non is > working! Is it impossible to export a composite report? Or did I > forget something? > Many thanks. How are you attempting to do this? Based on my research, the ExportToFilter method is not available in a Composite report....:-( Based on the help files, I thought you could handle it manually through the preview screen but I don't see that option either. The only way I could get any filter to work was: 1. Add the QRExport to your uses clause. 2. On the button that runs the report add this type of code: procedure TForm1.Button1Click(Sender: TObject); Var AExportFilter : TQRHTMLDocumentFilter; begin AExportFilter := TQRHTMLDocumentFilter.Create('C:\Dump\Report.HTM'); Try Form2.QuickRep1.ExportToFilter(AExportFilter); finally AExportFilter.Free; end; end; Supposedly you can also export to a CVS file and a Text file but I do not find any magic word to use to replace the TQRHTMLDocumentFilter type. Maybe someone else can enlighten the group on this. Good Luck! ===== Tom Nesler Live Long...Code Well... and Prosper! V __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/JjlUgA/vN2EAA/kG8FAA/i7folB/TM ---------------------------------------------------------------------~-> ============================================= QReport Artist 5 - http://www.mensand.com/ The new version is available for Delphi 5.0 , Delphi 4.0 and Delphi 3, BC++Builder 3.0. and BC++Builder 4.0 ============================================= Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/