Can't save to file.
Hi,
We just bought ExportDevices from Pragnaan. When I tried to export the
reports I stumbled upon the following problem: I can't get the print dialog
to show exporting options. As I figured it out, the "AllowPrintToFile"
property doesn't work correctly.
I even tried your demo in the "Delphi7\RBuilder\Demos\3. EndUser\3.
AutoJoins", but simply setting ppReport1.AllowPrintToFile:=true in design
time seems to have no effect.
So the question is: How can I allow user to print report into file in your
AutoJoins demo"?.
It seems that report components used in ReportExplorer components are not
supposed to be printed into file, but how in this case can I use exporting?
Thanks,
MB.
We just bought ExportDevices from Pragnaan. When I tried to export the
reports I stumbled upon the following problem: I can't get the print dialog
to show exporting options. As I figured it out, the "AllowPrintToFile"
property doesn't work correctly.
I even tried your demo in the "Delphi7\RBuilder\Demos\3. EndUser\3.
AutoJoins", but simply setting ppReport1.AllowPrintToFile:=true in design
time seems to have no effect.
So the question is: How can I allow user to print report into file in your
AutoJoins demo"?.
It seems that report components used in ReportExplorer components are not
supposed to be printed into file, but how in this case can I use exporting?
Thanks,
MB.
This discussion has been closed.
Comments
To solve your problem in the end user configuration, assign the
Report.Template.OnLoadEnd event in code in order to set this property on the
report at runtime. There should be an exampel of using this event in the
main Report Explorer demo project.
What is happening is that you are changing the property, then loading a
template. This property is published, so when you load a template, the
report will have a AllowPrintToFile value which was saved in the template.
Most likely this is false in the template, well, it is a default property
value of false, so it isn't actually saved in the template, only if it is
true does it gets saved, but that is Delphi streaming so in effect it is
saved as false, though not explicitly.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com