I have had a solution working on Safari and Firefox for a while now but IE is proving more of a challenge. My code below simply prints to PDF and opens in a separate window. However, in IE, a blank window appears then disappears. For the first execution, I get a message saying 'could not access the server'.
- Code: Select all
function printOrderList()
{
forms.order_list_print.controller.show();
forms.order_list_print.controller.sort( 'company_id asc');
forms.order_list_print.controller.print(false,false,plugins.pdf_output.getPDFPrinter());
forms.company_form_main.controller.show();
}
There are definitely records to print and they reside in the current foundset. Pop-up blocker is switched off. I have tried controller.print and controller.printPreview without success. I am guessing there is a simple fix. Help !!!