This is a migrated thread and some comments may be shown as answers.

Copy full document into TableCell

1 Answer 6 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Omar
Top achievements
Rank 1
Omar asked on 09 Jul 2018, 07:41 PM

I have a list of RadFlowDocuments, and i need to copy all the document to one TableCell, i have tried merging the 2 RadFlowDocuments but the content adds outside the table.

 

How can I achive it?

 

Thank you!

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 12 Jul 2018, 04:09 PM
Hi Omar,

Before inserting the source document, you will need to ensure that the editor of the target one is positioned on the desired location. There are several Move~ methods listed in the Positioning section of the topic describing RadFlowDocumentEditor. Here is an example of how you could move the position of the editor to the first cell in the document:
// Find the first TableCell in the document
TableCell cell = document.EnumerateChildrenOfType<TableCell>().First();
// Find the first Paragraph inside the cell
Paragraph paragraph = cell.EnumerateChildrenOfType<Paragraph>().First();
editor.MoveToParagraphStart(paragraph);

Hope this is helpful.

Regards,
Tanya
Progress Telerik

Tags
WordsProcessing
Asked by
Omar
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or