by Westy » Mon Feb 23, 2004 6:17 pm
>are you sure that the form you show in that dialog in screen2 is exactly the same form you print in screen3?<
I went back and double-checked. Sure enough, it is a different form.
Experimenting some more I see that the controller in screen2 was being ignored because it was attached to a form that was in a dialog. So when the dialog closed before the Windows Preview screen opened, Servoy reverted back to the prior controller which was the custom controller of screen1.
I have now solved the problem by adding another blank form that only contains a "Return to Contacts" button. The blank form has the controller setting that I want. So I call the blank form after the dialog is closed and just before the Windows Print Preview screen is opened. That way servoy uses the controller from the blank form. When the user closes the Print Preview screen, the blank form appears with the "Return to Contacts" button, allowing the user to return to the Contacts (screen1). This seems to work fine.
Your questions got me thinking in the right direction. Thank you.
Dean