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

Free Support Forum - aspose.com

Cell Merging issue while using Aspose for generating PDF report from RTF file

Hello All

Following steps we are using to create report in DOC or PDF format using aspose

1. Create xslt<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

2. Transform xslt into RTF report using apache xalan

3. Convert RTF report into PDFand DOCusing Aspose.

From the step 2, we are generating the proper RTF file with merged cells,however we are facing problem at step 3 where Aspose is creating duplicate rows in place of merged cell while converting report from rtf to doc/pdf format

Please let us whether this kind of issue is already known issue and if it is a known issue kindly let us know the resolution so that it will help us in generating correct reports in doc/pdf format.

Looking forward for your positive reply

Hi Praveen,

Thanks for your inquiry. Could you please attach your input RTF document here for testing? We will investigate the issue on our side and provide you more information.

Hello Tahir

As requested please find the attached files Final_Report.rtf ,Final_Report.doc,Final_Report.pdf for your investigation.

Final_Report.doc and Final_Report.pdf files are generated using Final_Report.rtf file

However both doc and pdf files are not retaining the cell merge.

Important Note: While doing the investigation please ensure that the given RTF file is NOT resaved using MS word.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks

Praveen

Hi Praveen,

Thanks for sharing the detail. We have tested the scenario and have managed to reproduce the following issues at our side. For the sake of correction, we have logged these problems in our issue tracking system as follow:

WORDSNET-13760 : Table's merged cells are repeated after re-saving Rtf
WORDSNET-13761 : Table's header rows are not rendered in output Pdf

You will be notified via this forum thread once these issues are resolved. We apologize for your inconvenience.

Hello Tahir

Thanks for the reply.

Currently we are blocked because of this cell merging issue.

Could you please provide us the workaround to resolve this issue till we get the proper fix from Aspose.

Thanks

Praveen

Hi Praveen,

Thanks for your inquiry. Unfortunately, there is no workaround available for this issue. We will update you via this forum thread once this issue is resolved. We apologize for your inconvenience.

Hello Tahir

Thanks for the reply.

Do you have any idea about timeline needed to make this fix available?

Thanks

Praveen

Hi Praveen,

Thanks for your inquiry. We try our best to deal with every customer request in a timely fashion, we unfortunately cannot guarantee a delivery date to every customer issue. Our developers work on issues on a first come, first served basis. We feel this is the fairest and most appropriate way to satisfy the needs of the majority of our customers.

Currently, the issues are pending for analysis and are in the queue. Once our product team completes the analysis of these issue, we will then be able to provide you an estimate.

Thanks for your patience and understanding.
Hi Praveen,

Thanks for your patience. Please use following workaround to fix this issue. Hope this helps you.

Document doc = new Document(MyDir + "in.rtf");

Node[] tables = doc.getChildNodes(NodeType.
TABLE, true).toArray();

for (int i = 0; i<tables.length;i++)
{
Table table = (Table)tables[i];
// Check if the next node after the tabel is another table.
if ((table.getNextSibling() != null) && table.getTextWrapping() != TextWrapping.AROUND && (table.getNextSibling().getNodeType() == NodeType.TABLE)
&& ((Table)table.getNextSibling()).getTextWrapping() != TextWrapping.
AROUND)
{
Table nextTable = (Table)table.getNextSibling();

// Append all rows form the current table to the next.
while (table.hasChildNodes())
nextTable.getRows().insert(
0, table.getLastRow());

}
}

doc.save(
MyDir + "Out.pdf");

Hello Tahir

Thanks for providing the quick workaround.

Currently we are testing this workaround with reports having tables with different level of cell merging.

Thanks for your support.

Praveen

Hi Praveen,

Thanks for your patience. Hopefully, the fix of WORDSNET-13760 will be included in Aspose.Words v16.7.0. We will inform you via this forum thread once this issue is resolved.

The issues you have found earlier (filed as WORDSNET-13760) have been fixed in this .NET update and this Java update.


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

The issues you have found earlier (filed as WORDSNET-13761) have been fixed in this Aspose.Words for .NET 16.12.0 update and this Aspose.Words for Java 16.12.0 update.


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