Jump to content
We've recently updated our Privacy Statement, available here ×

fernando.henrique.miara

Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

fernando.henrique.miara's Achievements

Newbie

Newbie (1/14)

  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. I have a Java application using Jasper version 6.17. Any docx file made with Jasper layout when opened in Microsoft Word, the bold does not work, could anyone help me? Java: JasperReport jasperReport = JasperCompileManager.compileReport(caminhoRelatoriodocx +"/mrp/ataZero.jrxml"); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, new JREmptyDataSource()); JRDocxExporter exporter = new JRDocxExporter(); SimpleDocxReportConfiguration configuration = new SimpleDocxReportConfiguration(); configuration.setFramesAsNestedTables(false); configuration.setFlexibleRowHeight(true); configuration.setIgnoreHyperlink(false); exporter.setConfiguration(configuration); exporter.setExporterInput(new SimpleExporterInput(jasperPrint)); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(response.getOutputStream())); response.setHeader("Content-Disposition", "attachment;filename="+fileName); response.setContentType("application/octet-stream"); exporter.exportReport();
×
×
  • Create New...