Copy content between documents preserving formatting and styles

In this sample we create two documents, a source and a target, with similarly named but different paragraph styles. We then copy a paragraph from the source to the target document using the FormattingCopyStrategy.KeepSource option. This option allows you to copy and preserve the source styles even if their names conflict with the style names in the target. In that case the source styles' names are modified by adding a numeric suffix to avoid conflicts.