I've developed some web based reports that users can print directly from the browser, and I'm looking for a bit more control over the printer margins. I'm using style sheets to hide unwanted content and format the printout nicely (using @media print styles), but can't seem to find a way to control the margins on the printed page at all.
When I print out the page, the printer default margins are applied to the page (0.75 inches in my case) and a lot of space is wasted. I'd like to programatically reduce these margins to 0.5 inches when the page is printed. I've tried playing around with the @page size and margin settings, but it doesn't seem to be doing anything.
Does anyone have any experience with this, or know of a good resource for using CSS to control printer settings?
When I print out the page, the printer default margins are applied to the page (0.75 inches in my case) and a lot of space is wasted. I'd like to programatically reduce these margins to 0.5 inches when the page is printed. I've tried playing around with the @page size and margin settings, but it doesn't seem to be doing anything.
Does anyone have any experience with this, or know of a good resource for using CSS to control printer settings?