Tables side by side with Jasper and Aspose

Hello,

I have a problem when I want to print two tables with Jasper+Aspose next to each other. In my example, two tables (via Subreports) are positioned side by side. In Jasper output (SubreportsJasper.docx) it looks visually good. In the Aspose output (SubreportsAspose.docx) not all table cells are produced. And also Aspose generate no real Word tables, but a “global” table with invisible gridlines, like in Jasper. Is there a solution to these problems? Can Aspose produce an output like SubreportsHandMade.docx? I’ve attached an Example :slight_smile:

Best regards, Achim

Hi Achim,

Thanks for your inquiry. We are working over your query and will update you asap.

Hi Achim,

Thanks for your patience. I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSJSP-156. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSJSP-156) have been fixed in this Aspose.Words for JasperReports 2.3.0 release.

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

Hello,

I 've tested the BUG WORDSJSP-156 with Aspose 2.3.0. Unfortunately, the BUG is not resolved. The DOCX issue still behaves as described in the start message. Can you check again, please?

Best regards, Achim

Hi Achim,

Thanks for your patience. Yes, this issue has not fixed in latest version of Aspose.Words for JasperReports. The notification has sent to you by mistake. This issue has been planned for development. We will update you via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Tahir,

you can tell me the state of programming for Ticket WORDSJSP-156?

Thanks and best regards

Achim

Hi Achim,

Thanks for your inquiry. Hopefully, the fix of this issue will be available in next version of Aspose.Wrods for JasperReports. Moreover, I have asked for the ETA of this issue from our product team. As soon as any information is shared by them, I will be
more than happy to share that with you.

Thanks for your patience.

Hi Tahir,

In version 2.4.0, this issue was not taken into account. This problem we have now been nine months and it makes some DOCX Exports useless because we can not edit the tables. Can you tell me how the progress is?

Best regards, Achim

Hi Achim,

Thanks for your patience. We regret to share with you that this issue is not resolved yet. Our product team is working over this issue. We will inform you via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hello,

can anybody tell me the state of programming for Ticket WORDSJSP-156?

Thanks and best regards

Achim

Hi Achim,

Thanks for your patience.

This issue has been resolved. Please use latest version of Aspose.Words for JasperReports 2.8.0. We introduced a new configuration option named USE_POSITIONING_TABLES. Please use this option and set its value to 1 (ALWAYS) to get the desired output. Please read the detail from following documentation link.

Positioning Tables

expAspose.setParameter(AWExporterParameter.USE_EXACT_ROW_HEIGHTS, Boolean.FALSE);
expAspose.setParameter(AWExporterParameter.JASPER_PRINT, jPrint);
expAspose.setParameter(AWExporterParameter.USE_POSITIONING_TABLES, 1);
expAspose.setParameter(AWExporterParameter.OUTPUT_FILE_NAME, outAspose.toString());
expAspose.exportReport();

Hi Tahir,

many thanks for the answer. Just because Aspose does not create position table in Word was the reason to purchase the software. The problem in this ticket was that at two adjacent tables Aspose again creates a position table. So, the post processing in Word is almost impossible. Even if I set the switch USE_POSITIONING_TABLES to NONE, Aspose creates a position table at two adjacent tables. Can you not remove this position table? In my example SubreportsHandMade.docx two tables coexist without position table. That would
be my goal in the Word output.

Thanks and best regards

Achim

Hi Achim,

Thanks for your inquiry. Please note that the table in SubreportsJasper.docx is also not position table. We have logged a separate issue as WORDSJSP-187 to export table with text wrapping as “Around” as shown in SubreportsHandMade.docx. We will inform you via this forum thread once there is any update available on this issue.

We apologize for your inconvenience.

Hi Tahir,

thanks for your response. In the example of the Jasper output (SubreportsJasper.docx) a position table or grid is available. See the dotted lines:

For this reason we are switched to Aspose because Aspose can produce pure Word tables. An output similar to SubreportsHandMade.docx would be great.

Thanks and best regards

Achim

Hi Achim,

Thanks for your inquiry. The SubreportsJasper.docx have only one table. However, in SubreportsHandMade.docx, there are two tables. The second table has text wrapping as “Around”. Please check the attached image for detail.

Could you please share what is your expected output “SubreportsJasper.docx” or “SubreportsHandMade.docx”? We will update the issue detail accordingly.

Hi Tahir,

thanks for your response. In my Example Subreports.zip I have a Jasper template Master.jrxml with two sub reports. Each Subreport creates a table. I need an output like in SubreportsHandMade.docx. So two separate tables next to each other.

Thanks and best regards

Achim

Hi Achim,

Thanks for sharing the detail. We will inform you via this forum thread once this issue is resolved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.