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.
Unfortunately, activation email could not send to your email. Please try again.

Nested table - Error message when opening the generated document

Thread ID:

Created:

Updated:

Platform:

Replies:

100478 Aug 10,2011 09:45 AM Aug 11,2011 07:57 AM ASP.NET MVC (Classic) 3
loading
Tags: DocIO
Markus Odebrecht
Asked On August 10, 2011 09:45 AM

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?


Markus Odebrecht
Replied On August 10, 2011 09:58 AM

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


Markus Odebrecht
Replied On August 10, 2011 10:08 AM

And only with Word 2010.


Poornima R [Syncfusion]
Replied On August 11, 2011 07:57 AM

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



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;