printpreview

I print a form, bodytext is a html area which I fill with a string I produce prior to printing.

All goes well if I make a choice to just print it directly. Outputting it to the printer (or osx preview/pdf) works perfectly.

Now I want to show a printpreview and that particular field remains empty. It doesn’t show anything. Strange since it does print…

No matter if this is os x or windows…

Is this reproduceble in a small solution?

Wow, got it… With the help of Servoy that is :)

The issue was caused by the fact that I fill up a global with a lot of html to be printed. I like to keep everything ‘clean’ so I emptied the global right after printing.

Printing caused the script to pause until printing was done.
A print preview (or show form) does not so the globals are emptied right away…

I now empty the globals upon record selection. Works like a charm!!!