Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Is there any problem about Report "AllowPrintFile" properties?

edited June 2004 in End User
Hi ,
I want to save prepared report (or export ).
For this reason I set "Allowprintfiles" properties to true.

When I click the print button on preview screen (at runtime), there is a
printer setup dialog window is appear but its not contain
"prin to file" option.
But When I try to preview report from delphi ide (at design time -using
double click on Tppreport object ) I can see "print to file" option.
Why I can see this option at design time and can't see at runtime .

(My tools : Delphi 7 - RB 7.04 , SQL server 2000 and Pragnaan export
tools)


Thanks a lot for yours helps,

Comments

  • edited June 2004
    Hi Kemal,

    If you set the Report.AllowPrintToFile property to True, the print dialog
    should give you the option to print to a file, even when you print from the
    preview. Are you by chance loading templates? If so, you need to be sure
    you save these templates down with this property set to True as well.

    --
    Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
    Delphi Informant Readers Choice awards!

    http://www.delphizine.com/ballot2004/

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2004
    I have stored my templates on sql server .
    I solved this problem using
    set Allowprintfiles := true before print report on delphi code.

    many thanks for yours helps,




This discussion has been closed.