Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print the content of Jscrollpane???????????????????????

Status
Not open for further replies.

rohithere

Programmer
Oct 27, 2003
51
IN
Hi,
May I know whether we can print the content which is inside a scrollpane (although some portion of the content is out of viewable screen size) to printer?

IT IS VERY VERY URGENT.

Kindly HELP.

Thanx in advance.
 
Hi,

Bur how to print the content of the scrollpane which is not visible on screen and lies at the unseen part of a long scrollpane page.


??????????????????
 
??????????????????
??????????????????
??????????????????
??????????????????
??????????????????

Chill out with the question marks !!!

The way printing works when using Graphics2D objects, as far as I know, is that you can only print using the visible part of the Graphics device. I believe this is because only the viewbale area is rendered at any one time - no point in using up memory rendering an area which you cannot see !

So, you must either make the the non-viewbale scrollpane area viewable, and print it that way, or use another API to extract the data from the Graphics device, and transform this to some other format so you can print it.

You may want to look at Batik and/or Cocoon which renders Graphics devices to SVG, and FOP which can create PDFs from several formats.





??????????????????
??????????????????
??????????????????
??????????????????
??????????????????




 
Hi,
2 questions:

1) how to make the the non-viewbale scrollpane area viewable?

2) what is Batik and/or Cocoon which renders Graphics devices to SVG, and FOP which can create PDFs from several formats.?





 
1) Sorry, don't know - try looking at the JScrollPane documentation and experiment.

2) FOP, Batik and Cocoon are Apache projects - use Google to find their homepage and documentation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top