I noticed that Aspose generates unnecessary section breaks in tables. In my appended example, a table is created, which is more than one page in size. Jasper leads the table clean on the second page. But Aspose creates an unnecessary section break. See also Confrontation.docx in the zip file. Is there a solution for this problem?
We suggest you please use page break parameter as PAGE_BREAKS_NONE to get the required output. Please check following code snippet and read following documentation link. Hope this helps you.
now I see that Aspose remove all page breaks. Even the page breaks that are in the templates explicitly inserted. This of course is not good. Why does Aspose generate a page break in my example, although none has been inserted into the template? Jasper generated there also no page breaks.
rocko90:
Why does Aspose generate a page break in my example, although none has been inserted into the template? Jasper generated there also no page breaks.
We have logged this problem in our issue tracking system as WORDSJSP-170. You will be notified via this forum thread once this issue is resolved.
We have tested the scenario and have not found the shared issue while using latest version of Aspose.Words for JasperReports 2.4.0. Please remove the old jar file from your application and add the new jar file of Aspose.Words for JasperReports 2.4.0 in your application. We have attached the output document with this post for your kind reference.
Thanks for your review. I have created especially a second example. But even there, a section break is always generated. For my test I use Eclipse with JasperReports 5.6.0 and Aspose.Words 2.4.0 (aspose.words.jasperreports-6.1.1.jar). Do you have any idea how it can identify why it does not work with me?
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-171. You will be notified via this forum thread once this issue is resolved.
This parameter controls how table rows are processed. If it is TRUE (default value), then rows heights are exactly the same as in input report. If it is set to FALSE then rows heights sometimes may be increased for better fitting of internal content. In this case bottom rows may move down and total height of content may become greater than total page height. This results to moving some rows to new page.
So could you please remove (or comment this line) and check again on your side?
thanks for the quick reply. Yes, when I put the USE_EXACT_ROW_HEIGHTS parameter to TRUE, no section breaks are generated. But unfortunately, the parameter USE_EXACT_ROW_HEIGHTS must be set to FALSE so that the table can be edited. And in some cases, the letters pgjyq are cut deep below. Unlike Jasper, Aspose generated section breaks in tables where there are none defined in the templates. Jasper moves the lines on the next page too, but does not create a section break.
Thanks for sharing the detail of your use case. We will inform you via this forum thread once there is any update available on this issue. Thanks for your patience.
thanks for your reply and sorry for my late response. We produce with Jasper many complicated lists whose templates have been developed in recent years. A change in the page size and page margins would be much too risky. We need exactly the format DIN A4. I 've attached an example, in the explicitly a section break is inserted after the first Subreport. If you use parameter AWExporterParameter.PAGE_BREAKS all breaks are removed in DOCX.
Thanks for sharing the detail. We have logged this detail in our issue tracking system. You will be informed via this forum thread once there is any update available on this issue. Thanks for your patience.