0 Replies - 973 Views - Last Post: 28 September 2009 - 01:57 AM Rate Topic: -----

#1 HP_   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 16-September 09

Please Help-JTable Printing.Pagedialog

Posted 28 September 2009 - 01:57 AM

I need to add Header and footer to the Pagedialog so that user can enter the header and footer text(during runtime).Is it Possible to extend the Pagedialog?

In the Java tutorial about ( http://java.sun.com/...ting/index.html )printing the Pagedialog has got header and footer.
But I am not getting that PageDialog when I run my program.
I am using JRE 1.5.0.
Also I have tried my code on JRE 1.6.0_13,1.5.0_14.But still I am not getting the Pagedialog with header and Footer.

Is it possible to do this in Java or do I need any other Java printing component?

Please Help.
My code is
PrinterJob pj=PrinterJob.getPrinterJob();
pj.setPrintable( new TableReport(excelTable, JTable.PrintMode.NORMAL, scalingFactor,
new MessageFormat("Table Report Demo"), null) );
PageFormat pageFormat = pj.defaultPage();
			}catch (Exception PrintException) {}


Is This A Good Question/Topic? 0
  • +

Page 1 of 1