lokits5 13 de out. de 2011
o que mostrou na sua “Exception” vc debugou?
uaslei_Java 13 de out. de 2011
sim ele parecer nao encontrar o caminho especifico mais o caminho esta correto
a conexao como vcs viram ai tbem
mais nao consigo subir a pagina em modo q mostre para imprimir
[ Fatal Error ] < img src = "//https://cdn.jsdelivr.net/gh/twitter/twemoji@14/assets/72x72/-.png1.png?v=5" title = ":-1:" class = "emoji" alt = ":-1:" > -1 : Premature end of file .
[ Fatal Error ] < img src = "//https://cdn.jsdelivr.net/gh/twitter/twemoji@14/assets/72x72/-.png1.png?v=5" title = ":-1:" class = "emoji" alt = ":-1:" > -1 : Premature end of file .
net . sf . jasperreports . engine . JRException : java . io . FileNotFoundException : \ br \ ifirst \ autosystem \ Relatorio \ RelatorioCheque . jasper
at net . sf . jasperreports . engine . util . JRLoader . loadObject ( JRLoader . java : 75 )
at net . sf . jasperreports . engine . JasperFillManager . fillReport ( JasperFillManager . java : 254 )
at br . ifirst . autosystem . view . CadastroVeiculos . butRelatorioVeiActionPerformed ( CadastroVeiculos . java : 729 )
at br . ifirst . autosystem . view . CadastroVeiculos . access$500 ( CadastroVeiculos . java : 17 )
at br . ifirst . autosystem . view . CadastroVeiculos$8 . actionPerformed ( CadastroVeiculos . java : 381 )
at javax . swing . AbstractButton . fireActionPerformed ( AbstractButton . java : 1995 )
at javax . swing . AbstractButton$Handler . actionPerformed ( AbstractButton . java : 2318 )
at javax . swing . DefaultButtonModel . fireActionPerformed ( DefaultButtonModel . java : 387 )
at javax . swing . JToggleButton$ToggleButtonModel . setPressed ( JToggleButton . java : 291 )
at javax . swing . plaf . basic . BasicButtonListener . mouseReleased ( BasicButtonListener . java : 236 )
at java . awt . Component . processMouseEvent ( Component . java : 6288 )
at javax . swing . JComponent . processMouseEvent ( JComponent . java : 3267 )
at java . awt . Component . processEvent ( Component . java : 6053 )
at java . awt . Container . processEvent ( Container . java : 2041 )
at java . awt . Component . dispatchEventImpl ( Component . java : 4651 )
at java . awt . Container . dispatchEventImpl ( Container . java : 2099 )
at java . awt . Component . dispatchEvent ( Component . java : 4481 )
lokits5 13 de out. de 2011
tenta assim
URL url = getClass () . getResource ( "/relatorios/cliente_BarBalada.jasper" ); // aqui é onde esta o relátorio à ser impresso o caminho dele para reconheçimento .
JasperReport relatorioJasper = ( JasperReport ) JRLoader . loadObject ( url );
print = JasperFillManager . fillReport ( relatorioJasper , null , ds );
JasperViewer . viewReport ( print , null , "Nome" , null );
uaslei_Java 13 de out. de 2011
Seguinte eu posso entao criar a conexao do relatorio e substituir pelo URL