Hi folks,

I've got the following problem with Quickreport in D4, using a very simple
report (just one textlabel on it):

When the QR-form is created from the project-file it works fine, but when I
create the form at run-time, using the following code, then it causes an
Access Violation error when closing the pre-view.
But strangely enough this happens only after I have clicked the printer
setup window from the preview screen (and closing it without any changes).

The code launching the report is as follows:

begin
    Application.CreateForm(TForm2, Form2);
    with form2 do
    begin
      QuickRep1.preview;
      free;
    end;
end;

Any help is highly appreciated.


John Christenhusz

winmail.dat

Reply via email to