Unplanned
Last Updated: 08 Aug 2019 10:21 by ADMIN
Naveen
Created on: 08 Aug 2019 07:08
Category: WordsProcessing
Type: Feature Request
2
WordsProcessing: Add support for splitting documents
Create a feature that allows the RadWordsProcessing to split RadFlowDocument.

Workaround: DocumentElementImporter can be used to prepare a document element from the source document for import into the target document

private static void SplitDocument(RadFlowDocument sourceDocument, RadFlowDocument targetDocument)
{
    DocumentElementImporter importer = new DocumentElementImporter(targetDocument, sourceDocument, ConflictingStylesResolutionMode.UseTargetStyle);
    Section section = sourceDocument.EnumerateChildrenOfType<Section>().First();
    Section importedSection = importer.Import(section);
    targetDocument.Sections.Add(importedSection);
 
    sourceDocument.Sections.Remove(section);
}
0 comments