Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/89532-a4-page-layout/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/89532-a4-page-layout/#findComment-458585
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/89532-a4-page-layout/#findComment-458607
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.