Thanks Peter.
Actually the Service running under the system account. I have set up an account for the
service. this account has administrative priviledges. now the application identifies the
printer. since i have created a bat file and execute now it doesn't print because the
user account doesnot have priviledges to the killing of the process.
please find the code attached
FileWriter fw =new FileWriter(PDFPath+"printPDF.bat");
PrintWriter out = new PrintWriter(fw);
out.println("taskkill/IM AcroRd32.exe /t");
out.println("CALL START /MIN AcroRd32.exe /h /p "+PDFPath+filename);
out.close();
fw.close();
String batPath = PDFPath + "printPDF.bat";
tr = Runtime.getRuntime();
Process p = tr.exec(batPath);
any ideas.
Thanks in adavance
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089540#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...