marknt Posted February 8, 2007 Share Posted February 8, 2007 Hello guys. I'm doing a report and already used the window.print() javascript function. But at the upper right of the page appears the URL of the php file to print and at the lower left is the page number. I want to disable them. I have checked the page setup in firefox and you can disable it manually. My question is is there anyway i can access the page setup via PHP so that i can disable the added URL and page numbering in my page when i print it out? Thanks in advance! More power Link to comment https://forums.phpfreaks.com/topic/37568-solved-accessing-print-page-setup-via-php/ Share on other sites More sharing options...
ultrus Posted February 8, 2007 Share Posted February 8, 2007 Hello marknt, I'm 95% sure that you can't access print stuff from php as it runs on the server before getting to the browser. I am unsure if this is possible at all, but would be interested yo know if it was. Good luck. Link to comment https://forums.phpfreaks.com/topic/37568-solved-accessing-print-page-setup-via-php/#findComment-179654 Share on other sites More sharing options...
marknt Posted February 8, 2007 Author Share Posted February 8, 2007 aaawwww..*sigh*..., i thought that there's a PHP way. Thanks for the reply ultrus. I guess they'll just have to set it manually in order to disable the URL and page numbering when they print it out. Link to comment https://forums.phpfreaks.com/topic/37568-solved-accessing-print-page-setup-via-php/#findComment-179665 Share on other sites More sharing options...
redarrow Posted February 8, 2007 Share Posted February 8, 2007 this is the correct way ok mate. http://www.sitellite.org/index/tutorials-story-action/story.45/title.css-based-print-this-page- Link to comment https://forums.phpfreaks.com/topic/37568-solved-accessing-print-page-setup-via-php/#findComment-179667 Share on other sites More sharing options...
ultrus Posted February 8, 2007 Share Posted February 8, 2007 That's sweet. I learned something new. Thanks for the post. Link to comment https://forums.phpfreaks.com/topic/37568-solved-accessing-print-page-setup-via-php/#findComment-179671 Share on other sites More sharing options...
marknt Posted February 8, 2007 Author Share Posted February 8, 2007 this is the correct way ok mate. http://www.sitellite.org/index/tutorials-story-action/story.45/title.css-based-print-this-page- WOW!!! Thanks!!! Now that's what i'm talkin about. Thanks again sir redarrow Link to comment https://forums.phpfreaks.com/topic/37568-solved-accessing-print-page-setup-via-php/#findComment-179692 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.