git-svn-id: https://svn.coded.pt/svn/SIPRP@1218 bb69d46d-e84e-40c8-a05a-06db0d633741

lxbfYeaa
Frederico Palma 16 years ago
parent 0309356371
commit e6f063e890

@ -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() )
{

Loading…
Cancel
Save