We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Unwanted section break

In PDF output the rendered report is OK, but in .docx an unwanted section break appears on page 2. Font used is Typography times (attached).

Hi Dennis,

Thanks for your inquiry. We have installed the shared font "Typography times" and exported the shared Jrprint file to Docx. We have got the java.lang.StackOverflowError exception. Could you please share how to use the shared Jrprint file with this font? We will investigate the issue on our side and provide you more information.

Hi,

we were using following code:
jrxml is attached


//Getting template
JasperDesign design = JRXmlLoader.load(“c:\content\template.jrxml”);
JRDesignBand band = new JRDesignBand();
band.setHeight(1);
band.setSplitType(SplitTypeEnum.STRETCH);



//Getting detail section
JRDesignSection details = (JRDesignSection) design.getDetailSection();
details.addBand(band);

//Html text with very long

content
String text = “

test11

test11

test11

test11

test11

test11test11test11

test11

test11

 

 

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none v none none none none none none none none none none none none none none none none none none none nonenone none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

gggggg hhhhh jjjjjj iiiiiioouuu ooo

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

test11

 

“;
JRDesignTextField textField = new JRDesignTextField();

//Html markup
textField.setMarkup(“html”);
textField.setStretchWithOverflow(true);
textField.setPositionType(PositionTypeEnum.FLOAT);
textField.setStretchType(StretchTypeEnum.RELATIVE_TO_TALLEST_OBJECT);
textField.setWidth(design.getPageWidth() - design.getLeftMargin() - design.getRightMargin());
textField.setX(0);
textField.setY(band.getHeight());
textField.setExpression(new JRDesignExpression(””" + JRStringUtil.escapeJavaStringLiteral(text) + “”"));
band.addElement(textField);

JasperReport jasperReport = JasperCompileManager.compileReport(design);
Map<String, Object> reportParameters = new HashMap<>();
JasperPrint print = JasperFillManager.fillReport(jasperReport, reportParameters, new JREmptyDataSource());
JasperFillManager.fillReportToFile(jasperReport, “c:\content\template.jrprint”, reportParameters, new JREmptyDataSource());




AWDocxExporter exporter = new AWDocxExporter();
exporter.setParameter(AWExporterParameter.JASPER_PRINT, print);
exporter.setParameter(AWExporterParameter.OUTPUT_FILE_NAME, “c:\content\report.docx”);
exporter.exportReport();
Hi Dennis,

Thanks for sharing the detail. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSJSP-196. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi,


We are waiting for this fix as it has a dependency to clients. Could you please indicate when we can expect a fix?

Kind regards,
Dennis
Hi Dennis,

Thanks for your inquiry.

Your issue has been resolved and its fix will be available in next version of Aspose.Words for JasperReports v16.12.0. We will inform you via this forum thread once new version of Aspose.Words for JasperReports is available.

Thanks for your patience.

The issues you have found earlier (filed as WORDSJSP-196) have been fixed in this Aspose.Words for JasperReports 16.12.0 update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.