Printing woes

Hi,

Trying to print(preview) a form.
On this form there is only one label. The label is filled with an html table in the onshow method. This form is a tabpanel.
I placed the printbutton on the form. I see the html label on the form.
When I do printpreview in the (tabpanel form) controller. I get an empty page. What am I missing?

THX

The onShow and onHide are not working yet, with printpreview
They have implement it in 2.2rc3

Try split it up now. first fill the lable and than do print-preview.

OK, but in my printing method I call the method that writes the table to the label and still it doesn’t show ?

Odysseus:
OK, but in my printing method I call the method that writes the table to the label and still it doesn’t show ?

hmm. that should work.
What part is in the onShow than?

The form I want to print is also used as a tabpanel. For Tabpanel viewing I use the onshow event (works OK).
So what I originally did was put a print button on the form in the tabpanel.
The method for that printbutton was controller.showprintpreview.
When that gave a blank, I added the generatelabelContent handler to the method. When debugging everything works fine (html is generated) and the printpreview window opens. But it is blank. When I make the label not transparent I see I gray zone in the print preview

Baffled…