How do I do a Print Preview the way I want?

I have a form ‘basic’ with a tabpanel and in there a form ‘extended’ with a listview.

The shown records on form ‘extended’ are selected with a find/search method.

Now when I want to print the ‘extended’ records I want to do that via a printpreview directly from the ‘basic’ form.

a forms.printform.showPrintPreview(foundset) doesn’t work.

I have to do (and that is also according to the manual)

  1. forms.printform.showRecords(foundset);
  2. forms.printform.showPrintPreview();
  3. forms.basic.form.show();

Without line 3 in the method and, pressing the close button, I go me back to the ‘printform’ instead of the ‘basic’ form.

With line 3 I can’t close the window…

Is this a bug or am I doing something wrong here?

BTW when I do a direct print with

  1. forms.printform.print(false, true);

It works like expected…

Youre are in basic form yes?

try this:

  1. forms.printform.loadRecords(foundset);
  2. forms.printform.showPrintPreview();

Bingo!

Thanks…