Printing tabpanels problem

I have a form and on that form contains a related tabpanel. I can generate a pdf of that form, but the tabpanel will will not show on the pdf.
Here’s the code that generates the pdf in web client:

var fname = currentcontroller.getName() + '_print';
var installdir = java.lang.System.getProperty("user.dir");
var filepath = installdir + '/server/webapps/ROOT/pdf/invoice.pdf'; 

//application.output(fname);

if (!forms[fname])
{
	fname = currentcontroller.getName();
}

//application.output(fname);

forms[fname].controller.print(true,  true,  plugins.pdf_output.getPDFPrinter(filepath));
application.showURL('/pdf/invoice.pdf','_self');

What can I do to get the tabpanel to display on the pdf?

Have you checked the “printable” property of the tabpanel?

Yes, I have made sure that the printable property is checked. Just to clarify, I’m trying to print from webclient. I’m using Servoy 3.5.5.