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
close icon

Definition for Body doen''t exist in section

Hello,
I find this sample code on your website
in Tables samples section.

IWTable table = section.Body.AddTable();

When I try to use it there is an error message( in french):'Syncfusion.DocIO.DLS.IWSection' ne contient pas de définition pour 'Body'
('Syncfusion.DocIO.DLS.IWSection' doen't contains a definition for 'Body')

I will appreciate if you can help me about that.

Thank you!


1 Reply

SA Saravanan A Syncfusion Team October 20, 2007 11:40 AM UTC

Hi Franck,

On seeing your query it seems that you are using the Essential DocIO version older than 5.2. If so, then you have to use the following code to add a table.

//Adding a paragraph to the section.
IWParagraph paragraph = section.AddParagraph();
ITable table = paragraph.AppendTable();


In the latest version (5.2) we have improved our current object model for better usability and functionality, however there are some breaking changes in APIs. We have moved the table from Paragraph to Body. Please refer to this document for a detailed list of changes:
http://www.syncfusion.com/Product/uploads/DocIO APIchanges_f9afbe8a.pdf

Let us know if you need any further information.

Regards,
Saravanan

Loader.
Live Chat Icon For mobile
Up arrow icon