File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Printing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Printing" Watch "Printing" New topic
Author

Printing

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hai,
Using Swing I am doing a program. I have a Text Area where in the Content is Displayed and i want to Print the content of the TextArea once i click the print Button. Can any one help me in Code?
thanx
sri
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Do you want to print it to the console (of course not), then to print it to a real printer you have to go through the operating system, so it would depend on your environment.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"y sridhar",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
This is really a question about the Java Printing API rather than Swing/AWT, so I've moved it to the Other Java APIs forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing