You are here: Re: how to print data on paper with header in each new page? « PHP Programming Language « IT news, forums, messages
Re: how to print data on paper with header in each new page?

Posted by Jerry Stuckle on 03/01/06 16:07

Mitul wrote:
> Hello friends,
>
> I am getting stuck at a point in my project.
>
> I would like to give functionality of print data from site. but there
> is a problem is that if there are lots of data which takes multiple
> pages to print then I need to show header that indicates coloum name at
> top of each page so can any one help me how to do that.
>
> the main problem is there are muliple line for each row so I could not
> make condition depends on some fixed rows concept. So Please keep this
> in mind.
>
> Let me give u visual for my problem.
>
> First Page will prints as follow:
> --------------------------------------------------------------------
> No. Name Address Date
> --------------------------------------------------------------------
> 1. XYZ abc abc abc 02/25/2006
> abc abc abc
> 2. XYZ abc abc abc 02/25/2006
> abc abc abc
> abc abc abc
> abc abc abc
> 3. XYZ abc abc abc 02/25/2006
>
> 4. XYZ abc abc abc 02/25/2006
> abc abc abc
> .
> .
> .
> .
> .
> .
> Page end
>
> Second Page needs to print as follow:
>
> --------------------------------------------------------------------
> No. Name Address Date
> --------------------------------------------------------------------
> 43. XYZ abc abc abc 02/25/2006
> abc abc abc
> 44. XYZ abc abc abc 02/25/2006
> abc abc abc
> abc abc abc
> abc abc abc
> 45. XYZ abc abc abc 02/25/2006
>
> 46. XYZ abc abc abc 02/25/2006
> abc abc abc
> .
> .
> .
> .
> .
> .
> Page end
>
> Something Like this.....
>
> Please advise me what to do...
>
> Any Suggesstion is welcome.
>
> With Regards,
> Mitul Patel
> mitul [at] siliconinfo [dot] com
>

Basically not possible because you can't control the user's system. You
have no idea what their printer properties are, their page size, any
font overrides in effect - and a whole bunch of other things.

If you need to control how something is printed more than just what the
browser's print button gives you, I suggest you create a PDF and let the
user download and print that.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация