We help IT Professionals succeed at work.

PrintToFile in QReport

TeRReF
TeRReF asked
on
I want to print to file in Qreport. Unfortunately, the PrinterSetup used with QReport doesn't have a PrintToFile option.  I tried to add a PrintDialog but that didn't work.

Thanks in advance,
TeRReF

Comment
Watch Question

Commented:
save the report to a file.
This example is taken of the Directory Demos that comes with Delphi for Quickreport, I suppose that you will have the version 3 and not the professional one.  

The possible filters will see them in the example that copies you textually, for more information you look at yourself the mentioned example.

with SaveDialog1 do
begin
if Execute then
begin
frmFormLetter.QuickRep1.ExportToFilter(TQRCommaSeparatedFilter.Create(FileName));


{
Other filters:
HTML: TQRHTMLDocumentFilter
ASCII: TQRAsciiExportFilter
CSV: TQRCommaSeparatedFilter

In Professional Version:
RTF: TQRRTFExportFilter
WMF: TQRWMFExportFilter
Excel: TQRXLSFilter}

Bye.


TeRReF:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
BRONZE EXPERT

Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

accept marcoszorrilla's comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Thanks,

geobul
EE Cleanup Volunteer

Explore More ContentExplore courses, solutions, and other research materials related to this topic.