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

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 16 years ago
parent cce9cfbc6f
commit 6c4b3501f3

@ -415,7 +415,10 @@ public class PanelRelatorio extends JPanel implements CaretListener, ChangeListe
RelatorioPDFCreator creator = new RelatorioPDFCreator();
pdf = creator.createPDF( relatorio.getId() );
}
printToFile( pdf );
if( !printToFile( pdf ) )
{
throw new Exception( "ERRO: NULL " + ( plano ? "p " : "r " ) + relatorio.getId() );
}
}
catch( Exception e )
{
@ -427,7 +430,7 @@ public class PanelRelatorio extends JPanel implements CaretListener, ChangeListe
}
}
private void printToFile( byte [] pdf ) throws IOException
private boolean printToFile( byte [] pdf ) throws IOException
{
if( pdf != null )
@ -454,6 +457,7 @@ public class PanelRelatorio extends JPanel implements CaretListener, ChangeListe
}
}
}
return pdf != null;
}
private JFrame getFrame( )

Loading…
Cancel
Save