# showPrintPreview in dialog

**URL:** <https://forum.servoy.com/t/showprintpreview-in-dialog/8084>\
**Category:** Classic Servoy\
**Created:** [August 31, 2007, 2:47pm UTC](https://forum.servoy.com/t/showprintpreview-in-dialog/8084 "2007-08-31T14:47:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![chgog](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@chgog](https://forum.servoy.com/u/chgog)\
**Post date:** [August 31, 2007, 2:47pm UTC](https://forum.servoy.com/t/showprintpreview-in-dialog/8084/1 "2007-08-31T14:47:35Z")

</div>

Hi,

I have:

- normal form: ‘FormA\_normal’
- form in dialog: ‘FormB\_in\_dialog’
- form for preview :’ FormC\_for\_preview’
- and the preview of this form : 'Preview\_of\_form’C

When I show a preview with showPrintPreview method from ‘FormA\_normal’ it works fine.

When I show the preview ‘Preview\_of\_formC’ from ‘FormB\_in\_dialog’, the preview is correctly show in dialog, but when I close it, the form in dialog load ‘FormC\_for\_preview’ (not the last form use ‘FormB\_in\_dialog’) and the ‘FormA\_normal’ in background change for ‘FormB\_in\_dialog’.

I hope it’s clear ![:)]( "Smile") ,

Thanks

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [September 2, 2007, 8:44am UTC](https://forum.servoy.com/t/showprintpreview-in-dialog/8084/2 "2007-09-02T08:44:09Z")

</div>

> When I show a preview with showPrintPreview method from ‘FormA\_normal’ it works fine.

So, basically this tells you it works.

> When I show the preview ‘Preview\_of\_formC’ from ‘FormB\_in\_dialog’, the preview is correctly show in dialog, but when I close it, the form in dialog load ‘FormC\_for\_preview’ (not the last form use ‘FormB\_in\_dialog’) and the ‘FormA\_normal’ in background change for ‘FormB\_in\_dialog’.

Does your formb or formc have an onShow method attached that make it perform differently?  
When you go back from a formindialog the form in the main frame will ‘show’ again so the onShow is triggered again…

---

<div class="post-metadata">

**Author:** ![chgog](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@chgog](https://forum.servoy.com/u/chgog)\
**Post date:** [September 3, 2007, 7:44am UTC](https://forum.servoy.com/t/showprintpreview-in-dialog/8084/3 "2007-09-03T07:44:38Z")

</div>

I set none to onShow method on Form A , B and C but it’s the same.

---

<div class="post-metadata">

**Author:** ![chgog](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@chgog](https://forum.servoy.com/u/chgog)\
**Post date:** [September 3, 2007, 7:50am UTC](https://forum.servoy.com/t/showprintpreview-in-dialog/8084/4 "2007-09-03T07:50:48Z")

</div>

I have create a solution to show this problem

[Form\_in\_dialog.servoy](https://forum.servoy.com/uploads/short-url/iRdAqskuPUCPxMSXcPmsm1CzVMW.servoy) (5.41 KB)

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [September 3, 2007, 7:53am UTC](https://forum.servoy.com/t/showprintpreview-in-dialog/8084/5 "2007-09-03T07:53:44Z")

</div>

Which version of Servoy?

---

<div class="post-metadata">

**Author:** ![chgog](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@chgog](https://forum.servoy.com/u/chgog)\
**Post date:** [September 3, 2007, 8:01am UTC](https://forum.servoy.com/t/showprintpreview-in-dialog/8084/6 "2007-09-03T08:01:50Z")

</div>

Servoy version 3.5-build 513, repository version 30

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [September 3, 2007, 8:58am UTC](https://forum.servoy.com/t/showprintpreview-in-dialog/8084/7 "2007-09-03T08:58:32Z")

</div>

You protected your solution ![:?]( "Confused")

Little hard to debug this way.  
Anyway when you are really sure you did nothing wrong you should add it to the Support System along with your (unprotected!) solution…

---

<div class="post-metadata">

**Author:** ![chgog](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@chgog](https://forum.servoy.com/u/chgog)\
**Post date:** [September 3, 2007, 9:03am UTC](https://forum.servoy.com/t/showprintpreview-in-dialog/8084/8 "2007-09-03T09:03:09Z")

</div>

![:?:]( "Question") No, I didn’t protect it, I tried to import it and no password is required.

No password is required to change in designer mode too.

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [September 3, 2007, 9:15am UTC](https://forum.servoy.com/t/showprintpreview-in-dialog/8084/9 "2007-09-03T09:15:57Z")

</div>

I was definitely not able to change to design mode

---

<div class="post-metadata">

**Author:** ![chgog](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@chgog](https://forum.servoy.com/u/chgog)\
**Post date:** [September 3, 2007, 1:30pm UTC](https://forum.servoy.com/t/showprintpreview-in-dialog/8084/10 "2007-09-03T13:30:49Z")

</div>

Ok it will be fixed in 3.5.1  
Thanks
