I think I have found an issue with the cloning of paragraphs in regards to their fonts. I have 2 documents (attached), a target document and a source document. I clone and import all paragraphs from the source document into the target document; then I set all the paragraphs breakfonts in the target document to be bold. After this operation I would not expect this to affect the source document, but it appears that all the source documents paragraph breakfonts also have their bold applied. Is this indented behaviour?
Below is the following code used to reproduce this:
Dim sourceDoc As New Document("c:\tmp2.doc") Dim targetDoc As New Document("c:\tmp1.doc") For Each sourcePara As Paragraph In sourceDoc.LastSection.Body.Paragraphs targetDoc.LastSection.Body.Paragraphs.Add(targetDoc.ImportNode(sourcePara.Clone(True), True, ImportFormatMode.UseDestinationStyles)) Next For Each p As Paragraph In targetDoc.LastSection.Body.Paragraphs p.ParagraphBreakFont.Bold = True Next targetDoc.Save("c:\tmp3.doc") sourceDoc.Save("c:\tmp4.doc")