I am trying to print a pdf file in background.

It works perfectly in Windows XP but it doesn’t work in Windows 98.  In this System Operation I call :

 

Runtime.getRuntime().exec("command /c start acrord32 /t /p /h \"" + SalidaPdfTemp.getAbsolutePath() + "\" \"" + _service.getName() + "\"");

 

SalidaPdfTemp.getAbsolutePath() is correct

_service.getName() is correct

 

Java.io.IOException: CreateProcess: command command /c start acrord32 /t /p /h “c:\Windows\temp\Informe17186.pdf” “hpDeskjet920cINTERNO” error=0

            At java.lang.win32Process.create(Native Method) ….

 

 

Any idea????

 

 

Pepe Caballero

 

Reply via email to