Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing to different trays  RSS feed

 
Dave Patterson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure if this is 100% on topic but it does involve streams so hopefully someone on-list has tried this...

I'm creating a PCL output stream using fop and dumping it into a windows network printer by opeing a file handle of the form "host\\printerName". This was working great but my users are now asking if they can direct different prints to different paper trays (headed and plain). I appreciate that this is really more of a windows issue than a java IO issue but I'm struggling to find a good "java printing hacks on windows" forum

Thanks

Dave Patterson.
 
Joe Ess
Bartender
Posts: 9425
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a hack, but printing is usually done with the Java Print Service.
 
Dave Patterson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joe,

I found some example code on the Sun Developer Forums that worked great (once I'd upgraded to a 1.4 JDK). I set the document flavour to "AutoSense" and my PCL files print perfectly. Now I need to persuade the boss to upgrade Websphere to 5.1 so we can use it. Wish me luck...

Dave Patterson.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!