Telerik Forums RSShttp://www.telerik.com/urn:uuid:01219371-0123-458f-a714-390bd988102ahttp://www.telerik.com/forums/permalink/cZMhASMBj0WnFDkL2YgQKgInsert contect a wnd of Document<p>Thank you for the info on the Merge() method. Exactly what I was looking for.</p>
<p>Dan</p>urn:uuid:a0956a4a-551d-41e9-a930-40c29f8f3635http://www.telerik.com/forums/permalink/SmqVoB1V6UGpMEDCn482NQInsert contect a wnd of DocumentHi Daniel,<br />
<br />
The RadFlowDocumentEditor in fact does not support navigation, so it wouldn't be able to add text in the middle of a span for example.&nbsp;The editor maintains an internal position inside the document, which points either inside a paragraph (to an inline) or directly after the end of a table element. In order to change the position in the document you could use some of the RadFlowDocumentEditor's methods, which are listed in <a href="http://www.telerik.com/help/winforms/wordsprocessing-editing-radflowdocumenteditor.html" target="_blank">this help article</a>.<br />
<br />
To insert content at the end of the document, you could find the last InlineBase element with the generic EnumerateChildrentOfType method and move the position using MoveToInlineEnd():<br />
<div class="tFormatCodeBlock supportThreadCodeBlock" style="border: 1px solid #7f9db9; overflow-y: auto;" id="highlighter_56204">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">InlineBase lastInline = editor.Document.EnumerateChildrenOfType&lt;InlineBase&gt;().Last();</code></span></div>
<div style="background-color: #f8f8f8;"><span style="margin-left: 0px !important;"><code style="color: #000000;">editor.MoveToInlineEnd(lastInline);</code></span></div>
</div>
<br />
If you are trying to append several documents together you can also take advantage of the <a href="http://www.telerik.com/help/winforms/wordsprocessing-editing-clone-and-merge.html" target="_blank">Merge()</a> method.<br />
<br />
Hope this helps.<br />
<br />
Regards,<br />
Tanya <br />
Telerik
<div class="forumBaloonTop">&nbsp;</div>
<div class="forumBaloon">
<p>See What's Next in App Development. <a title="Register for TelerikNEXT" target="_blank" href="http://www.teleriknext.com/">Register for TelerikNEXT</a>.</p>
</div>
<div class="forumBaloonBottom">&nbsp;</div>urn:uuid:12cf316e-a8fd-44ae-9bef-33c4f350d348http://www.telerik.com/forums/permalink/bjHPEv2orkSb7zPE81DTSAInsert contect a wnd of DocumentHello,<br />
<br />
I am investigating RadFlowDocument as a possible reporting tool. I can load a existing document and add content but I can`t find a way to insert my content at the end of the document.&nbsp; What is the best way to navigate a document with RadFlowDocumentEditor?<br />
<br />
Thanks, Dan