Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Want headers on all pages while printing

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am facing the same problem .. mahadevan in case you find some solution ..let me know
 
Saloon Keeper
Posts: 26057
186
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Trust God, but always tether your camel... to this tiny ad.
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic