Solved

make a report fit to a4 paper with php

Posted on 2007-11-27
3
1,875 Views
Last Modified: 2012-05-05
I am new for php i can write a code to get data form mysql database , what should i learn to make agood report for print a4 paper or are there a tool to help to make it print in a 4 paper
0
Comment
Question by:teera
3 Comments
 
LVL 21

Assisted Solution

by:nizsmo
nizsmo earned 100 total points
ID: 20356752
Are you wanting to make sure that the report prints and fits in an A4 page? The best practice and way to do this in my opinion is to trial and error, see how much you can fit, and use print-preview to see how close you are to the boundaries in terms of your contents on the page.

Hope this helps.
0
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 100 total points
ID: 20357248
according to me, you may use CSS + HTML, images styles, to design for exact fit for A4 size with using db data...
0
 
LVL 20

Accepted Solution

by:
steelseth12 earned 150 total points
ID: 20357315
Do NOT use fixed values.
E.g <table width="100%"> will fit exactly on any paper size.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question