aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Print table need some idea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Print table need some idea" Watch "Print table need some idea" New topic
Author

Print table need some idea

anchit pancholi
Ranch Hand

Joined: Oct 14, 2010
Posts: 53
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
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
anchit pancholi
Ranch Hand

Joined: Oct 14, 2010
Posts: 53
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
Ashish Agre
Ranch Hand

Joined: Jan 22, 2011
Posts: 73

Go here ....
Java 7 Tuts

Download the tutorials and then fin JTable demo.


| B.E IT | SCJP 6.0 98 % |
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Print table need some idea
 
Similar Threads
Optional join of tables
Print invoice - JSP
Help with Printing a Report
Print a Report
how to design invoice running number