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

Free Support Forum - aspose.com

Text in text field is truncated

Hello,

I 'm building along with Jasper Report text fields to tables and export it to Docx. When I put together more than one text field to a table and set the padding in these cells for example to 2, Aspose Exporter cuts off the lower part of the text. With Jasper-Exporter or for a single text field, the problem does not occur. I have this message attached an example. On the second Docx-page you can see the Problem. Is there a solution for this problem?

Best regards, Achim

Hi Rocko,

Thanks for your inquiry. AWExporterParameter.USE_EXACT_ROW_HEIGHTS is
TRUE by default so height of rows will be exactly when .jrprint/.jrxml file is
exported to Doc/Docx file format.

Please use AWExporterParameter.USE_EXACT_ROW_HEIGHTS parameter with value FALSE as shown in following code snippet. Please let us know if you have any more queries.

AWDocxExporter expAspose = new AWDocxExporter();
expAspose.setParameter(AWExporterParameter.LICENSE, "license/Aspose.Words.JasperReports.lic");
expAspose.setParameter(JRExporterParameter.JASPER_PRINT_LIST, jPrintList);
expAspose.setParameter(AWExporterParameter.USE_EXACT_ROW_HEIGHTS, Boolean.*FALSE*);
expAspose.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, outAspose.toString());
expAspose.exportReport();

Hi Tahir,

that’s it. It works just fine. Thank you.

Best regards, Achim

Hi Rocko,

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.