Win a copy of Spring Boot in Practice this week in the Spring 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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: 22667
127
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic