473,804 Members | 3,603 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3039
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*******@attgl obal.net
=============== ===
Mar 1 '06 #3

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

Similar topics

2
8380
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 "window.print".
48
8718
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 The ScreenplayCSS is flawed, for several reasons; -overuse of <div id= tags -doesn't scale screen resolutions (convert from px to in, pt ?) -no media="print" (how much coule be shared between "screen" & "print") -no automatic page breaks (with...
7
1770
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. Evan Camilleri
0
1251
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 print those data on paper but when i m printing those data using window.print() it will print all data contineous and i want to print those data group wise on each paper with column header like........ Name :- Software Name...
9
2756
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 needs to work in IE but FF does the same thing. I tried messing with some media="print" functionality on it but couldn't get any page breaks to happen. I'm guessing there's something in the markup of the page that the browsers don't like, any...
0
2217
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 = "<html xmlns:o='urn:schemas-microsoft-com:office:office' " & _ "xmlns:w='urn:schemas-microsoft-com:office:word'" & _ "xmlns='http://www.w3.org/TR/REC-html40'>" strBody = strBody + "<!-->" & _ "<xml>" & _ "<w:WordDocument>" & _
12
3546
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 print the report three times, but do not know how
2
2109
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 print the elements look bigger when I print from IE 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...
2
2177
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 otherwise it re-displays the form request. The $template variable changes the value of which template is displayed. if($mark&&$num){ $mark = $mark = strtoupper($mark); $TPL_carnumbers = GetHeaders($_SESSION); $xclheader =
0
9589
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10593
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10329
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7626
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4304
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3000
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.