Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by James Snyder on Oct 13, 2009 10:28
open dhtmlx forum
printView() + Printer Dialog

Is there a way to call printView() and then have the printer dialog launch via JavaScript?

Thanks,
James
Answer posted by Stanislav (support) on Oct 14, 2009 02:30
Only by code modification, you can locate next line in dhtmlxgrid_nxml.js 

d.document.close();

and replace it with 

d.document.close();
d.print();
Answer posted by James Snyder on Oct 14, 2009 07:32

Thanks kindly.  That worked great.

I also added:  d.close(); after that line so that the new window automatically closes after it prints.