Print Preview methods

I would like to be able to navigate to another form when I hit the button ‘close’ in Print Preview, or after clicking ‘Print’.
Would this be possible? (In FM I could solve this with a pause/resume step and a Get(LastMessageChoice) )

Close returns to form it is on before showing the preview, you could try this:
forms..controller.show()
forms..controller.showPrintPreview()

Jan Blok:
forms..controller.show()
forms..controller.showPrintPreview()

Yes, thanks Jan, that does work fine! I have but one -minor- problem here. The print form doesn’t have a -custom- controller. So when I close the preview, I see the former form WITHOUT his -custom- controller… :(

Ehhh.. bug or do I still forget something? :wink:

Jan Blok:
Close returns to form it is on before showing the preview, you could try this:
forms..controller.show()
forms..controller.showPrintPreview()

Hi Jan,
I’ve to return not to simple form, but a form in a tabpanel.

Example:
tableA, tableB
formA in a tabpanel, with portal to formB.
When I click on “preview” button on formA, I’ve to open formB_print in preview mode, and when I click on print or close button, I’ve to return to formA in the tabpanel, and not only in the simple formA.

My method on formA is something like:
forms.formB_print.controller.showRecords(A_to_B);
forms.formB_print.controller.showPrintPreview();

I don’t know how to return to tabpanel (tab element n.2)
Could you help me?

Thanks anyway for your support on forum, and for your great product
Regards
Andrea

I assume that you want to go back to your MAINform?

MAINform includes a tabpanel showing formA.
formA in return has a preview button for formB
After closing formB preview , you want to go back to MAINform.

do this:
forms.MAINform.controller.show()
forms.formB_print.controller.showRecords(A_to_B);
forms.formB_print.controller.showPrintPreview();