Re: [DUG]: Quick Reports Preview

2003-06-10 Thread ping_delphilist
On Tue, 10 Jun 2003 13:41:46 +1200, you wrote: Hi All I'm trying to give my users the ability to display (and print) previously run and saved Quick Reports (ie .QRP files). I must admit that (among other things) the structure of QuickReports has been a considerable mystery to me. I have

RE: [DUG]: Quick Reports Preview

2003-06-10 Thread Mark Howard
Big chocolate fish for Jeremy, but thanks to everyone for their help with this problem yesterday afternoon. Don't know what I'd do without this group. Jeremy's solution works just fine - does what I want with no AV's or leaks BUT... does anyone know how to enable the Printer Settings

RE: [DUG]: Quick Reports Preview

2003-06-09 Thread Stephen Barker
Mark, you don't need to free the QR1 component - it is owned by the form and will get destroyed when the form destroys. regards, Steve -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED] Sent: Tuesday, 10 June 2003 1:42 p.m. To: Multiple recipients of list delphi

RE: [DUG]: Quick Reports Preview

2003-06-09 Thread David Brennan
Mark, I think I have found your problem. You are using Quick Reports. Get a new report writer and you should be fine ;-). Seriously tho the handling of QR1 looks strange to me. You aren't creating it so presumably it is automatically being created by PreviewFrm? However you do explicitly free

RE: [DUG]: Quick Reports Preview

2003-06-09 Thread Mark Howard
Hi Steve If I comment out the line that frees QR1 I still get an AV. :-( Mark On 10 Jun 2003 at 13:54, Stephen Barker wrote: Mark, you don't need to free the QR1 component - it is owned by the form and will get destroyed when the form destroys. regards, Steve -Original

RE: [DUG]: Quick Reports Preview

2003-06-09 Thread Jeremy North
Any reason you are creating this dialog with application as parent? I remember some issue with temp path's being too long causing errors. This might be it. Anything in the destroy/free of the form you are creating? Hanging try..finally block.. JED [EMAIL PROTECTED] wrote on

RE: [DUG]: Quick Reports Preview

2003-06-09 Thread James Sugrue
What happens if you take the close out of the after preview event ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Howard Sent: Tuesday, 10 June 2003 2:04 pm To: Multiple recipients of list delphi Subject: RE: [DUG]: Quick Reports Preview Hi Steve

RE: [DUG]: Quick Reports Preview

2003-06-09 Thread Mark Howard
To: Multiple recipients of list delphi Subject: RE: [DUG]: Quick Reports Preview Hi Steve If I comment out the line that frees QR1 I still get an AV. :-( Mark On 10 Jun 2003 at 13:54, Stephen Barker wrote: Mark, you don't need to free the QR1 component - it is owned by the form

Re: [DUG]: Quick Reports Preview

2003-06-09 Thread Nello Sestini
: Tuesday, June 10, 2003 09:35 Subject: RE: [DUG]: Quick Reports Preview Hi James Same result - AV Mark On 10 Jun 2003 at 14:25, James Sugrue wrote: What happens if you take the close out of the after preview event ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: [DUG]: Quick Reports Preview

2003-06-09 Thread James Sugrue
June 2003 2:35 pm To: Multiple recipients of list delphi Subject: RE: [DUG]: Quick Reports Preview Hi James Same result - AV Mark On 10 Jun 2003 at 14:25, James Sugrue wrote: What happens if you take the close out of the after preview event ? -Original Message- From: [EMAIL

RE: [DUG]: Quick Reports Preview

2003-06-09 Thread Jeremy North
I would use this. You have to use _PreviewModal_ in this instance. if opendialog1.execute then begin QuickReport1 := TQuickReport1.Create(self); try QuickReport1.Prepare; QuickReport1.QRPrinter.Load(opendialog1.filename);

RE: [DUG]: Quick Reports Preview

2003-06-09 Thread Mark Howard
On 10 Jun 2003 at 13:10, Jeremy North wrote: I would use this. You have to use _PreviewModal_ in this instance. if opendialog1.execute then begin QuickReport1 := TQuickReport1.Create(self); try QuickReport1.Prepare;

Re: [DUG]: Quick Reports Preview

2003-06-09 Thread Mark Howard
(if that doesn't work i will dig up some working QR code) -ns http://www.roserox.co.th - Original Message - From: Mark Howard [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 09:35 Subject: RE: [DUG]: Quick Reports Preview

RE: [DUG]: Quick Reports Preview

2003-06-09 Thread Mark Howard
OK OK if opendialog execute then Create PreviewFm PreviewFm.Showmodal PreviewFm.OnShow Do Jeremy's QuickReport1 stuff all I'm tussling with now is where to close the PreviewFm But, I thought I'd get this off before Jeremy or anyone else spends anymore time on it. All

RE: [DUG]: Quick Reports Preview

2003-06-09 Thread James Sugrue
No, just have the QReport(or whatever it is) unit in your uses clause. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Howard Sent: Tuesday, 10 June 2003 3:51 pm To: Multiple recipients of list delphi Subject: RE: [DUG]: Quick Reports Preview On 10

RE: [DUG]: Quick Reports Preview

2003-06-09 Thread Jeremy North
I just went to File | New and selected Report from the repository. There is no need to put it on a form. QuickReport1 is just a form - in a way. I had a button on my main form. It created the report and previewed it. Email me off list if you want the project I slapped together. JED