Reports in Recycle Bin Printing
I am using a procedure similar to the one below to print reports which
seems to work OK most of the time.
However, if a report has been deleted and is in the recycle bin it will
still print load the report template from the recycled bin.
Also, if the old version of the report is in the Recycle Bin and the
latest version is in another folder, it usually prints the report that
is in the Recycle bin.
Can you explain what I should do to print the report using the latest
template and avoid the report template that is located in the recycle Bin?
procedure PrintReport(ReportTemplate: string);
begin
ppReport1.Template.DatabaseSettings.Name := ReportTemplate;
ppReport1.Template.LoadFromDataBase;
ppReport1.PrinterSetup.DocumentName := ReportTemplate;
ppReport1.Print;
end;
Thank you . . .
Richard Harding
seems to work OK most of the time.
However, if a report has been deleted and is in the recycle bin it will
still print load the report template from the recycled bin.
Also, if the old version of the report is in the Recycle Bin and the
latest version is in another folder, it usually prints the report that
is in the Recycle bin.
Can you explain what I should do to print the report using the latest
template and avoid the report template that is located in the recycle Bin?
procedure PrintReport(ReportTemplate: string);
begin
ppReport1.Template.DatabaseSettings.Name := ReportTemplate;
ppReport1.Template.LoadFromDataBase;
ppReport1.PrinterSetup.DocumentName := ReportTemplate;
ppReport1.Print;
end;
Thank you . . .
Richard Harding
This discussion has been closed.
Comments
Take a look at the following article on loading templates saved with the
Report Explorer.
http://www.digital-metaphors.com/rbWiki/Design/Templates/How_To...Programmatically_Load_Reports
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Richard Harding.