I have an application written in Delphi3 that uses QuickReport for reporting. On the report I have a subdetailband with a headerband and a footerband. Sometimes the number of records in the dataset set as dataset for the band is so big that the subdetailband will print over 3 or more pages. Everytime this happens I get an exception of class EFCreateError "Cannot create file (and then 3 boxes for characters not showable)" and when I run again an exception class EInvalid Operation ""Canvas does not allow drawing". Itøs always happening during the call to Prepare like this:
MyForm.QuickRep1.prepare; // this call creates the exceptions
MyForm.QuickRep1.QRPrinter := nil;
even if I leave out the call to prepare (which I donøt want to because I need it to show the total number of pages in the actual preview) and just call
I get the same execptions. If the number of records so that the report only takes up two page, everything works fine.
UPDATE: Through Showmessages I've found out that the exception occurs after EndPage of page 2 and after Afterprint on the footerpand on page 2, but before the Startpage event for page 3 is fired.
Any ideas ?