?
Solved

make a report fit to a4 paper with php

Posted on 2007-11-27
3
Medium Priority
?
2,001 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 21

Assisted Solution

by:nizsmo
nizsmo earned 400 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 400 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 600 total points
ID: 20357315
Do NOT use fixed values.
E.g <table width="100%"> will fit exactly on any paper size.
0

Featured Post

Tutorial: Introduction to Managing a Linux Server

In this tutorial on systemd, we will explore:
-OS/Distro Adoption
-chkconfig and Other Legacy Commands
-Summary and Key Commands

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
Suggested Courses

764 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