Document doc = new Document("D:\\11613469_14-10-56.doc");
foreach (Section item in doc.Sections)
{
using (Document newWord = new Document())
{
Section Section = item.Clone();
newWord.Sections.Add(Section);
}
}
error is
at Spire.Doc.Documents.Style.ᜀ(String A_0)
at Spire.Doc.Documents.Style.ᜁ(Document A_0, Document A_1)
at Spire.Doc.Fields.ParagraphBase.CloneRelationsTo(Document doc, OwnerHolder nextOwner)
at Spire.Doc.Fields.TextRange.CloneRelationsTo(Document doc, OwnerHolder nextOwner)
at Spire.Doc.DocumentObject.CloneRelationsTo(Document doc, OwnerHolder nextOwner)
at Spire.Doc.Documents.Paragraph.CloneRelationsTo(Document doc, OwnerHolder nextOwner)
at Spire.Doc.DocumentObject.CloneRelationsTo(Document doc, OwnerHolder nextOwner)
at Spire.Doc.Body.CloneRelationsTo(Document doc, OwnerHolder nextOwner)
at Spire.Doc.DocumentObject.CloneRelationsTo(Document doc, OwnerHolder nextOwner)
at Spire.Doc.Section.CloneRelationsTo(Document doc, OwnerHolder nextOwner)
at Spire.Doc.Collections.DocumentObjectCollection.OnInsert(Int32 index, DocumentObject entity)
at Spire.Doc.Collections.DocumentObjectCollection.Add(IDocumentObject entity)
at Spire.Doc.Collections.SectionCollection.Add(ISection section)
for security reason file sending by email