After listening to good advice here on the group and internet I have decided to drop QuickReports in favour of Rave.
That said, I now have an oddity with Rave Reports. Trying to create three reports programmatically printing them in one run. This has worked out really easily in Rave reports, basically using SetTab, PrintTab and print routines. All of the data in the reports is presented within boxes using the BOXLINEALL function in the SetTab routine. If I just run the reports one after another there is no issue. However I am having difficulty getting them to print on separate pages. I tried using the NEWPAGE function. This successfully prints each report on a separate page however it prints the box lines from the previous pages report first and then overwrite it with the following report. This still persists even if a ClearTabs or ClearAllTabs command is issued prior to the following report being printed. Has anyone else experienced this issue or have any idea as to what may cause it? Regards Phil Hayward System Analyst Pinepanels Rangiora ph (64) 3 313-2764 fax (64) 3 313-2739 Ext 38824 [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl @ Work Sent: Thursday, 13 July 2006 5:28 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: RE: [DUG] QuickReports 4.05 issues > Last year we applied a patch to version 4.05 to fix memory leaks. This > was just a matter of applying > > if QRPrinter <> nil then QRPrinter.free; > to > Destructor TCustomQuickRep.Destroy; > in quickrpt.pas and recompiling . > > Now, why I mention this is during debugging it seems to be > here that the > error is caused when exiting the program. Maybe your composite report object (or unit) is now also freeing it on program exit? Just a WAG, but try changing that line to: if QRPrinter <> nil then FreeAndNil(QRPrinter); Worth a crack. Cheers, Carl DISCLAIMER: This electronic message together with any attachments is confidential. If you are not the intended recipient, do not copy, disclose or use the contents in any way. Please also advise us by return e-mail that you have received the message and then please destroy. Carter Holt Harvey is not responsible for any changes made to this message and / or any attachments after sending by Carter Holt Harvey. We use virus scanning software but exclude all liability for viruses or anything similar in this email or any attachment. _______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi
