473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

how to print data on paper with header in each new page?

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

Mar 1 '06 #1
2 2988
See this page:
http://css-discuss.incutio.com/?page=PrintingTables

The only catch: it works only with IE5.5+ and Gecko, not with IE5 and
Opera.

Another approach would be generating a pdf document. This way, you
would have complete control over the layout.

http://www.php.net/manual/en/ref.pdf.php

Florian

Mar 1 '06 #2
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.
js*******@attglobal.net
==================
Mar 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Yaron Cohen | last post by:
Hi, I would like to ask for your help. I am using IE5.5. I have a wide page with horizontal scroll bar. The problem is that I get only 1 page when printing it using "file->print" or...
48
by: David J Patrick | last post by:
I'm trying to rewrite the CSS used in http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html. using the w3.org paged media standards as described at http://www.w3.org/TR/REC-CSS2/page.html ...
7
by: Evan Camilleri | last post by:
I have a datagrid with headers. I managed to 'freeze' the headers OK and then one can scroll to see contents. I would like to be able to print this list by re-prinitng the headers on each page....
0
by: Ripendra007 | last post by:
hi, Can u tell me how can i print the data of datgrid to next page with header column on next paper ? I hav dataset which contains information of groupwise report and bound to datagrid now i want ro...
9
by: xprotocol | last post by:
Trying to print a web page that scrolls to right a bit. I would think IE would page break by default when it gets to the end of the sheet, but it doesn't, it just cuts off the print. This only...
0
by: krishnagovindaraj | last post by:
Hi, I have to create word document with header and footer..its working in web layout.In Print Layput,the header is displayed two times..Plz give me the solution...its very urgent.. strBody =...
12
by: Studiotyphoon | last post by:
Hi, I have report which I need to print 3 times, but would like to have the following headings Customer Copy - Print 1 Accounts Copy - Print 2 File Copy -Print 3 I created a macro to...
2
by: dmorand | last post by:
When I try to print a 'print version' of my page it looks fine in IE 7, but when I print in IE 6 the margins are all screwed up. The page itself looks the same in both browsers, it's just when I...
2
by: JRough | last post by:
I have this code that switches templates depending on if the user fills in a form with a request. The request asks for the $mark & $number. If that request gets input then it displays a list...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.