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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Conflict between Syncfusion.DSL.ISectionCollection and System.Collection.IList

Thread ID:





52269 Nov 24,2006 10:13 AM UTC Nov 28,2006 01:18 PM UTC ASP.NET Web Forms (Classic) 3
Tags: DocIO
Asked On November 24, 2006 10:13 AM UTC


I work with Essential Studio Enterprise
and Visual Studio 2003.

I try to concat several files and I've taken this piece of code from several examples :

Imports System.IO
Imports Syncfusion.DocIO
Imports Syncfusion.DocIO.DLS
Imports Syncfusion.DLS


Dim docfinal As WordDocument

Private Sub ConcateneDocFinal(ByVal document As WordDocument)

Dim secs As IWSectionCollection = document.Sections
Dim sec As IWSection

For Each sec In secs
document.LastSection.BreakCode = sec.BreakCode

End Sub


I have an error for the line : docfinal.Sections.Add((sec.Clone(docfinal)))
Apparently it is a conflict between the fonction Add of the Syncfusion.DSL.ISectionCollection and the fonction Add of the System.Collection.IList

Any idea ?



Dhivya K [Syncfusion]
Replied On November 24, 2006 02:38 PM UTC

Hi Lucie,

Thanks for the code snippet. I was able to reproduce the issue. This is an know issue which has been addresses already. Can you please use the following statement which converts explicitly?

CType(doc.Sections, WSectionCollection).Add(sec.Clone(doc))

Please let me know if you have any other queries.


Administrator [Syncfusion]
Replied On November 27, 2006 11:48 AM UTC

It works great !!!

Thank !

Dhivya K [Syncfusion]
Replied On November 28, 2006 01:18 PM UTC

Hi Lucie,

Thanks for the update. Glad to know that it works fine. Please let me know if you have any queries.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon