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
DK
Dhivya K
Syncfusion Team
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.
AD
Administrator
Syncfusion Team
November 27, 2006 11:48 AM UTC
It works great !!!
Thank !
DK
Dhivya K
Syncfusion Team
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.