Hi all, I am facing problem while printing PDF document using PDFRenderer in server. The following code works fine in local environment. but in Server its not working even it does not through any exception in console aswell. Do we need to make any server specific configuration for PrinterJob. Please suggest..
Please post the complete, working code. Where does "pjob" come from? It looks like it should be a parameter to your print() method, but it's not being passed and your print() doesn't take a parameter. And where are you catching the PrinterException? Your call to print() should be in a try-catch block.
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
I think this is too hard a question for beginning Java, moving to IO...
All things are lawful, but not all things are profitable.
posted 5 years ago
Hi J. Kevin ,
Following is the code which is working perfectly in locally deployed web application in my web logic. But When I am testing it same scenario in server where application has been deployed in system which is having Windows standard 2008 operating system and weblogic appln server.
Its not throwing any exception also its getting halted in between when control reaches to PrinterJob even I tried to find route cause by doing remote debugging it dint help...