• Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT - Printing- To set number of pages

 
merwin pinto
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I had written a code to print the content out from a JEditorpane ....
now the printing goes fine up to 1 page. If the content on the editorpane
increases then the printing terminates at one page and the rest is lost...

Using Book class i can set the number of pages OR set a longer ImageableArea ....But the problem is that i cannot access how many number of pages the content is going to be on the editor pane ..... Now my question is this :

Is there any way i can find out the number of pages of content in the editor pane so that i can set the number of pages in the Book class ....befor printing ?

Thanks a lot in advance
regards
merwin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!