• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to print multiple pages to printer?  RSS feed

 
Shoaib Khanzada
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have JTextArea and i want to print its text to the printer. Now in advance i dont know that how many pages will be there to print. It can be 1 or it can be 10. Please tell me how can i print multiple pages in java?
regards,
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Swing forum.
 
Dirk Schreckmann
Sheriff
Posts: 7023
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure from your question, but you might be specifically interested in Printing a Collection of Pages.
Any luck?
 
Matt Robinson
author
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is directly covered in Chapter 22 of our book, Swing, Second Edition. Feel free to download the chapter 22 examples at:
http://www.manning.com/sbe
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!