QR 3.01 and my own preview prblem

Hi,

I need to use my own preview with QR 3.01 by using the event OnPreview

Look at what they say in help:

procedure RepForm.MyReportOnPreviewEvent(Sender : TObject);
begin
  MyPrevForm.QRPreview.QRPrinter := TQRPrinter(Sender);
  MyPrevForm.Show;
end;

BUT if you do that
- your preview form is destroyed only when you close the form
  which owns the report ! (and AfterPreview event is called !)
- your code following the call to preview is executed at the same time !!!

So it's impossible to re-preview , free ressources , and so on ....

Has anybody heard about that ?

Regards,
  Chris

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum