nezbo Posted February 5, 2008 Share Posted February 5, 2008 Hi all Is is posible to setup a page so i can print it out? I have no idea how to go about this, so some code will be greatly recived. What i am trying to do is, creat a report with a standard header and footer and with info from the mysql database? I am not to sure if i should use a pdf thing? Is there a class or function that will make it very simple bacause i have a few reports to make? Neil Quote Link to comment https://forums.phpfreaks.com/topic/89532-a4-page-layout/ Share on other sites More sharing options...
ratcateme Posted February 5, 2008 Share Posted February 5, 2008 you could place your page in a table with a set width i don't no how big A4 is in pixles but i'm sure you could find it on Google but i don't no if it would work with all printers or browsers also the table could extend itself outside the set width if images are to big or other objects wont wrap. Scott. Quote Link to comment https://forums.phpfreaks.com/topic/89532-a4-page-layout/#findComment-458585 Share on other sites More sharing options...
nezbo Posted February 5, 2008 Author Share Posted February 5, 2008 I also had that idea, but i thought it might be a bit messy. I am sure there is a function out there some where !!! Quote Link to comment https://forums.phpfreaks.com/topic/89532-a4-page-layout/#findComment-458586 Share on other sites More sharing options...
ratcateme Posted February 5, 2008 Share Posted February 5, 2008 just looking on Google i found this http://www.zend.com//code/codex.php?ozid=977&single=1 just put a link to it and it gets all the data it needs from the $HTTP_REFERER looks like it should work for what you want Scott. Quote Link to comment https://forums.phpfreaks.com/topic/89532-a4-page-layout/#findComment-458594 Share on other sites More sharing options...
nezbo Posted February 5, 2008 Author Share Posted February 5, 2008 Cheers for this, but i am not to sure if this is what i need. i dont want it to print quite yet. i just want to set the payout to A4 or letter etc... just looking on Google i found this http://www.zend.com//code/codex.php?ozid=977&single=1 just put a link to it and it gets all the data it needs from the $HTTP_REFERER looks like it should work for what you want Scott. Quote Link to comment https://forums.phpfreaks.com/topic/89532-a4-page-layout/#findComment-458607 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.