I'm trying to find a way to open a "choose printer" dialog when the user push "print", in my PHP page, not the SaveAs window.
i read all posts here , couldn't find a reply that works. also read this post : mPDF auto print issue
but the following code opens the saveas window, not the "choose printer" window:
$pdf=new mPDF('en','A4','','DejaVuSansCondensed',$template->margin_left,$template->margin_right,$template->margin_top,$template->margin_bottom,$template->margin_header,$template->margin_footer);
$pdf->setAutoFont();
$pdf->SetHTMLHeader($header);
$pdf->SetHTMLFooter($footer);
$pdf->SetJS('this.print();');
$pdf->writeHTML($printable);
$pdf->Output();
can anyone help? why do i still get the "save as" window?