Home General

Reports in Recycle Bin Printing

edited April 2010 in General
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

Comments

This discussion has been closed.