Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Apr 22, 2016 3:12 am

Now I have a docx file which has several tables ,I want insert a paragraph after the 3th table . But when I get the index of table ,it return -1.
following is the code :
section.Body.ChildObjects.IndexOf(section.Tables[2]);

iceblueDDX123
 
Posts: 34
Joined: Tue Apr 19, 2016 9:43 am

Fri Apr 22, 2016 3:17 am

oh my god ,I am so sorry .I have insert a table which is return of table.clone(),so I can not find the table in the document.
The problem has been solved.

iceblueDDX123
 
Posts: 34
Joined: Tue Apr 19, 2016 9:43 am

Fri Apr 22, 2016 3:28 am

Hi,

Thanks for your posting.
Welcome to write to us again if you have further problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc