diff --git a/trunk/SIPRPSoft/src/siprp/ficha/ExamePDF.java b/trunk/SIPRPSoft/src/siprp/ficha/ExamePDF.java index 56f55aac..d59fa9ae 100644 --- a/trunk/SIPRPSoft/src/siprp/ficha/ExamePDF.java +++ b/trunk/SIPRPSoft/src/siprp/ficha/ExamePDF.java @@ -160,7 +160,11 @@ public class ExamePDF implements FichaAptidaoConstants if( System.getProperty( "os.name" ).startsWith( "Windows" ) ) { //System.out.println( "cmd.exe /c \"" + System.getProperty( "user.home" ) + System.getProperty( "file.separator" ) + "report_ficha.pdf\"" ); - proc = Runtime.getRuntime().exec( "cmd.exe /c \"" + System.getProperty( "user.home" ) + System.getProperty( "file.separator" ) + nome + "_" + time + ".pdf\"" ); +// proc = Runtime.getRuntime().exec( "cmd.exe /c \"" + System.getProperty( "user.home" ) + System.getProperty( "file.separator" ) + nome + "_" + time + ".pdf\"" ); + + proc = Runtime.getRuntime().exec( new String[]{ System.getProperty( "user.home" ) + "\\open.bat", "c:\\temp\\" + nome + "_" + time + ".pdf" }); + + proc.waitFor(); if( !new File( System.getProperty( "user.home" ) + System.getProperty( "file.separator" ) + nome + "_" + time + ".pdf" ).delete() ) {