aspose file tools*
The moose likes Java in General and the fly likes Changing Printer Ink Colour Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Changing Printer Ink Colour" Watch "Changing Printer Ink Colour" New topic
Author

Changing Printer Ink Colour

henri henri
Ranch Hand

Joined: Oct 03, 2005
Posts: 115
Below is my standard print module. It prints the film titles seen in red located within a JTextArea. The print comes out as the same colour red I have specified in my JTextArea. In order to save on coloured ink, I would like to have it print out in black. I experimented with the print class, but failed to find out where to insert code that would give me a black ink printout.

http://pollscanada.com/screenshot.html


Ko Wey
Ranch Hand

Joined: Sep 08, 2003
Posts: 67
Very nice screenshot!! Deserves a bottle of red ink!

Can you select "PRINT IN B&W option " in your printJob.printDialog()-dialog?

or

Did you try:
componentToBePrinted.getGraphics().setColor(Color.black);
componentToBePrinted.paint(g2);
Probably will not succeed?

Just curious....
henri henri
Ranch Hand

Joined: Oct 03, 2005
Posts: 115
ok ko let me try that
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing Printer Ink Colour
 
Similar Threads
Printing Problem to print header
Printing in "html/text" format
Printing TextArea which span more than 1 page
Font Problem in Java Print API
printdialog properties..