5 Answers, 1 is accepted
0
Hi Luciano,
Alex
the Telerik team
Basically what you need to do is to make selection over the first document and then copy it at the end of the other. I've attached a sample project that demonstrates this approach (you will have to fix the references to Telerik.Windows.Documents and Telerik.Windows.Documents.FormatProviders.OpenXml assemblies).
I hope this is helpful.
Alex
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Luciano
Top achievements
Rank 1
answered on 20 Aug 2010, 09:25 AM
Thanks.
In the Example Merge result Second Document + First Document. Why?
In the Example Merge result Second Document + First Document. Why?
position.MoveToLastPositionInDocument();
//insert the copied content
doc1.InsertFragment(fragment, position);
0
Hi Luciano,
Please try the following:
Let us know how it goes.
All the best,
Mike
the Telerik team
Please try the following:
doc1.CaretPosition.MoveToLastPositionInDocument();
doc1.InsertFragment(fragment);
All the best,
Mike
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Kevin
Top achievements
Rank 1
answered on 23 Aug 2010, 04:10 PM
Mike,
Your follow up works.
New question, how would you insert the document after a new page break? Load doc1, page break, load doc2.
Your follow up works.
New question, how would you insert the document after a new page break? Load doc1, page break, load doc2.
0
Hello Kevin,
The way to insert a page break is
You should add that just before you insert the second document.
Get back to us if you have any further questions.
All the best,
Ivailo
the Telerik team
The way to insert a page break is
doc1.InsertInline(new Span(FormattingSymbolLayoutBox.PAGE_BREAK));
Get back to us if you have any further questions.
All the best,
Ivailo
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items