Merge several document into one document

Hi,

When i merge several document into one document, i have problems with tabs and fonts.

Is this method correct?


briefA = New Doment(bestand)
Dim dstDoc As Document = briefA.Clone
dstDoc.Sections.Clear()
'brief A
Dim currentDoc As Document =briefA.Clone
currentDoc.MailMerge.Execute(drvGeg.Row)
AppendDoc(dstDoc, currentDoc)
'brief B
Dim currentDoc As Document =briefB.Clone
currentDoc.MailMerge.Execute(drvGeg.Row)
AppendDoc(dstDoc, currentDoc)


I think the problem on the line

Dim dstDoc As Document = briefA.Clone
dstDoc.Sections.Clear()
So the dstDoc takes the layout of briefA and not BriefB


Hi,

Thank you for considering Aspose.

Hmm… Why shouldn’t you just make a new blank document and make it the destination document?

If you still have problems, please attach the documents and describe where the corruptions are.