I use windows.print() in my project for printing a page. I use Css to styles this page for removing body margins and padding. but Browsers like IE have default margins in Print Setup. How Can I remove all these margins? I want use whole page for printing
I use windows.print() in my project for printing a page. I use Css to
Share
I don’t think you can without some kind of ActiveX deal. I tried the same thing a while back, and it wasn’t possible because those settings can only be changed from the user’s computer, which a webpage script doesn’t have access to. The only alternative I can think of is to generate a PDF using TCPDF or something; that way you can get it to print exactly as you want it.