AllowPrintToFile ppReportExplorer
If I setup a simple report, set AllowPrintToFile, it works great.
In my application where I have a TppReportExplorer, TppDesigner,
TppReport setup so the end users can create their own reports. Setting
the AllowPrintToFile on the TppReport doesn't show the option when printing.
Is it possible to get the Print to File option to work on reports
created by end users?
I'm using RB7.04 and Delphi6.
daniel
In my application where I have a TppReportExplorer, TppDesigner,
TppReport setup so the end users can create their own reports. Setting
the AllowPrintToFile on the TppReport doesn't show the option when printing.
Is it possible to get the Print to File option to work on reports
created by end users?
I'm using RB7.04 and Delphi6.
daniel
This discussion has been closed.
Comments
If you set the AllowPrintToFile property to True, it should simply extend
the print dialog to give the user the option to print to file. If they
would then like to print to a file, they can check the Print to File
checkbox and enable the rest of the dialog.
ReportBuilder version 9 and higher introduced the built-in object inspector
inside the designer. This gives end-users the ability to access almost all
published report and report component properties, including the
AllowPrintToFile property.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
How to set default settings for report created with the end-user
designer....
www.digital-metaphors.com/rbWiki/End-User/Designer/How_To...Default_Settings_for_Reports
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I set the AllowPrintToFile property but it's not working in the existing
app that has end user reporting. A simple test application with a
pre-built report does work though.
Link is not working for me.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I found a google cache version of the page and this worked:
procedure TForm1.Button1Click(Sender: TObject);
begin
// initialize report properties
InitializeReport(ppReport1);
// assign template event-handlers
ppReport1.Template.OnNew := ehTemplate_New;
ppReport1.Template.OnLoadEnd := ehTemplate_LoadEnd;
ppDesigner1.ShowModal;
end;
procedure TForm1.ehTemplate_LoadEnd(Sender: TObject);
begin
InitializeReport(ppReport1);
end;
procedure TForm1.ehTemplate_New(Sender: TObject);
begin
InitializeReport(ppReport1);
end;
procedure TForm1.InitializeReport(aReport: TppReport);
begin
// initialize report properties
aReport.AllowPrintToFile := True;
end;
The link to download the example did not work, this is now fixed.
www.digital-metaphors.com/tips/DesignerInitializeReportProperties.zip
The link to rbWiki is working. rbWiki runs on port 8080
www.digital-metaphors.com/rbWiki/End-User/Designer/How_To...Default_Settings_for_Reports
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com