rs .. okay , my friend, ok... Sorry... pdfFileName is the full name of the pdf file ( c:folderrelatorio.pdf ) . I need to save to disk . I do not get the error message. But the file is not written .
See this point :
Iterator it = Repositorio.iterator ( ); / / a list of class content. Each class has different data for the report .
while ( it.hasNext ())
{
ctd content = ( content ) it.next ( ) ;
List list = Ctd.getLista( ); / / data for the report
PdfFileName String = ctd.getNomeArquivo; / / name of the pdf file of this report
JRBeanCollectionDataSource BCD = new JRBeanCollectionDataSource(lista) ;
JasperPrint impression JasperFillManager.fillReport = ( " relatorio.jasper " , null , BCD ) ;
JasperExportManager.exportReportToPdfFile ( impression , pdfFileName );
/ / Here I put a System.out.println ( " aquivo : " + pdfFileName )
// and see the file name in eclipse console , the filename . As if all was well . But the file is not written to disk.
}
When it is recorded..., I can open and close it .
Any idea ?
A hug .