We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Nested table - Error message when opening the generated document

Hello dear support,

I tried the following example:

http://samples.syncfusion.com/sfmvcsamplebrowser/8.1.0.30/MVC/DocIO_MVC/Samples/3.5/insertcontent/formattable

but everytime i open the generated document I get an error message, telling me the document is broken.

Even short test snippets, such as the following, create this error, as soon as I try to create nested tables.

Im using Win 7 64bit and Word 2010.

Snippet:

IWordDocument document = new WordDocument();
IWSection section = document.AddSection();
IWTable table = section.AddTable();
RowFormat format = new RowFormat();

// Inserting table with a row and a column.
table.ResetCells(1, 1);

// Insert an inner Table in Column 1, Row 1
IWTable innerTable = table[0, 0].AddTable();

// Inner Table gets 2 Fields
innerTable.ResetCells(2, 1);

//Fill field
IWParagraph par = innerTable[0, 0].AddParagraph();
par.AppendText("Test inner 0,0");

//Fill field
par = innerTable[1, 0].AddParagraph();
par.AppendText("Test inner 1,0");

What I'am doing wrong?


3 Replies

MO Markus Odebrecht August 10, 2011 01:58 PM UTC

This only happens if i open the files in with the .doc format



MO Markus Odebrecht August 10, 2011 02:08 PM UTC

And only with Word 2010.



PR Poornima R Syncfusion Team August 11, 2011 11:57 AM UTC

Hi Markus,

Thank you for your interest in Syncfusion Products.

The mentioned “Table corruption” issue has been already fixed from our version 8.4.0.10. Please try upgrading to our latest version 9.3.0.61 that is rolled out and available for download under the below location and let us know whether the issue is resolved.

http://www.syncfusion.com/support/forums/general/100432/Essential-Studio-2011-Volume-3-Final-Release-v93061-available-for-download

Please let us know if you have any questions.

Regards,
Poornima



Loader.
Live Chat Icon For mobile
Up arrow icon