aspose file tools
The moose likes Beginning Java and the fly likes Sending a file that have been uploaded to a holding queue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Sending a file that have been uploaded to a holding queue" Watch "Sending a file that have been uploaded to a holding queue" New topic
Author

Sending a file that have been uploaded to a holding queue

Richard Dennis
Greenhorn

Joined: Nov 05, 2012
Posts: 9
Hey guys im doing a project using JSF to create a web app that allows a user to upload a file such as a pdf or word document and then send it to a printer

im really stuck now on how to send the file i have upload via primfaces with ajax, but how do i send this to a printer ?, actuall it has to be sent to a printer holding queue as the job will be manually released but how do i go about this ? anyone got some sample code to start me off ? i have downloaded the CUPS4J library but don't know where to start as im new to java


Thanks guys !
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32689
    
    4
Welcome to the Ranch

I hardly ever print anything any more, so I don’t know. It has something to do with PrinterJob, I can remember that much. But I am pretty sure that you can find something if you open the Java Tutorials with ctrl-F-print. I found about 4 or 5 pages, but you might do well to start here. It is in the Swing section, which I hope does not mean you have to display your document on a GUI before you can print it. You get a print dialogue window, just as for any other printing, and I think once you get that far, all the printing is handled by the operating system in its usual fashion.
Richard Dennis
Greenhorn

Joined: Nov 05, 2012
Posts: 9
Thank you for your reply i will look into it now , and yes i don't need to display the document before printing just need to send it to a printer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending a file that have been uploaded to a holding queue
 
Similar Threads
JMS message
Timer
Specialized printing from a JSP page
Interactive Web Forms
help in having 'n' BlockedQueues and 'm' threads