Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Want headers on all pages while printing  RSS feed

 
mahadevan raja
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i have a query.
i am getting around 30 records from a resultset,for eg,let us take that
------------
SNo | name
------------
1 | xxxx
------------
2 | xxxx
------------
3 | xxxx
------------
like this .............
30 | xxxx-> this is the last record
------------
when i print it,i get the first 20 records or first few records based on the size of the paper,and the next set of records in the next page,
my problem is,i need these set of records in such a way that when the first few records r printed according to the page size and when it takes the next page ,i need the header to be printed again and continued from the next set of records.hope u wud have understodd.
ie.on printing,suppose the first page prints 10 records like this
SlNo|Name
---------
1 |aaaa
---------
2 |aaaa
---------
3 |aaaa
---------
.................
10 |aaaa
---------
second page comes like this

11 |aaaa
---------
12 |aaaa
---------
....................
20 |aaaa
---------
i dont want like this i want like this
first page|second page|third page|
----------|-----------|-----------
SlNo|Name |SlNo|Name |SlNo |Name|
----|-----|----|------|-----|----|
1 |aaaa |11 |aaaa |21 |aaaa|
----|-----|----|------|-----|----|
2 |bbbb |12 |bbbbb |22 |bbbb|
----|-----|----|------|-----|----|
.
.
.
10 |bbbb | 20 |bbbbb |30 |bbbb|
reply sooooooon.

[This message has been edited by mahadevan raja (edited October 29, 2001).]
 
Dharmesh Chheda
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing the same problem .. mahadevan in case you find some solution ..let me know
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use the new html page tags to break output into physical pages (by default html is considered to be one long page), but you'd have to create the page headers yourself.
When you have to lay out a printed page precisely, though, there are just too many variables to use html reliably, though. In that case your best bet is to construct a PDF document.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!