• 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
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

Print table need some idea

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

i have 120 tables in database and i want to print 6 table on a page like a invoice format. so there will be 20 pages.

how can i print 6 invoice on a single page and print all tables data in 20 pages??
i tried table.print(); but this is helps when i have only one table per page. other then that please suggest me something if you have some other solution

Thanks
Anc
 
Sheriff
Posts: 22768
130
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

anchit pancholi wrote:i tried table.print(); but this is helps when i have only one table per page.


Are you sure? I remember trying that before and getting the content spread across multiple pages, even with the column names at the top of each page. However, the JTable must be visible for this to work.
 
anchit pancholi
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Spoor wrote:

anchit pancholi wrote:i tried table.print(); but this is helps when i have only one table per page.


Are you sure? I remember trying that before and getting the content spread across multiple pages, even with the column names at the top of each page. However, the JTable must be visible for this to work.



when i tried this that time i am getting only one print and there page have only border no data.
is there any other thing easier then this if you know??

Thanks for reply
 
Ranch Hand
Posts: 73
Netbeans IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Go here ....
Java 7 Tuts

Download the tutorials and then fin JTable demo.
 
The fastest and most reliable components of any system are those that are not there. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic