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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

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

Hi,

I work with Essential Studio Enterprise 4.3.0.32
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
docfinal.Sections.Add((sec.Clone(docfinal)))
document.LastSection.BreakCode = sec.BreakCode
Next

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 ?

Thanks

Lucie


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?

[VB]
CType(doc.Sections, WSectionCollection).Add(sec.Clone(doc))

Please let me know if you have any other queries.

Regards,
Dhivya.

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.

Regards,
Dhivya.

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.

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

;