How to print contents of JTable with customized header and footer on the page.
I am strugling to print the report usin java swing. I have generated report and kept the results in a JTable, now i want to print the contents with the company information on top of the page and signature at the end of the records. Can anyone help me on this regards...Thanks
Be Confident,be trusty,Count your age by friends not by years
can't recall if I've printed a JTable using the code from the above, but every component I have tried has printed OK.
Md.Afzalur Rashid
Ranch Hand
Joined: Oct 29, 2002
Posts: 47
posted
0
Thanks Michael Dunn Can you explain me how to compile StandardPrint.java and use?
Afzal
Tapan Maru
Ranch Hand
Joined: May 08, 2006
Posts: 65
posted
0
From JDK 5, print method is included which is overloaded also.
you can give message format as the parameter.
go through API and try out. If you are unable to solve than let me know, i will send you a demo program for that.
Best Of Luck
Tapan Maru
tapanmaru@gmail.com
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
I'm actually using an older version of StandardPrint, the link is supposed to be the latest improved version.
to get the version in the link to compile: comment out the package comment out the 3 x import tjacobs.ui..... add this at the bottom of the code
it should compile OK now, and if its use is the same as the version I'm using, you call it like this
Md.Afzalur Rashid
Ranch Hand
Joined: Oct 29, 2002
Posts: 47
posted
0
Thanks Tapan Maru Please send me the demo....
Tapan Maru
Ranch Hand
Joined: May 08, 2006
Posts: 65
posted
0
Please click the link follow: you will get a demo code for printing JTable. but for that you have to install JDK1.5.0 or higher on your system Sorry I am sending the link but i think i lost the demo code.. Best Of Luck