RadWordsProcessing Document Merge ruins formatting.

0 Answers 61 Views
Spreadsheet
Arben
Top achievements
Rank 1
Arben asked on 29 Oct 2021, 03:58 PM | edited on 29 Oct 2021, 04:00 PM

Hello, when using the Telerik RadWordsProcessing Library as in This Link to copy the contents of a document into another one, the contents of the target document don't have the same format as those of the source document.

I could use the clone functionality as it keeps the source formatting, but the problem with that method is that it overrides the contents that are currently in the target document, and I need to do this thing over and over again and then save it. If I try to export using the clone method and then append using a file stream, I get an error saying "Unable to truncate data that previously existed in a file opened in Append mode."

Basically what I'm doing is copying the contents of a template, replacing the data in it with some data I got in an excel spreadsheet and then I need to save every version of the original template that I replaced with data.

I could try the Mail-Merge function since that has the functionality that I'm doing basically, but I already have the doc template preexisting, don't know how to create it with Telerik. 

Dimitar
Telerik team
commented on 01 Nov 2021, 08:20 AM

Hi Arben,

This seems to be a complex case. Would it be possible to share the code that you are using and the file from the images? Perhaps you can open a new ticket and attach them there. This will allow us to properly investigate this and provide you with a solution.

Thank you in advance for your patience and cooperation. 

Arben
Top achievements
Rank 1
commented on 01 Nov 2021, 09:17 AM

Alright, I will do that later today. Can I give you a tag or smth? 
Dimitar
Telerik team
commented on 02 Nov 2021, 07:50 AM

You can send me the ticket id so I get the ticket as well (see attached). 

Do not hesitate to contact us if you have other questions.

No answers yet. Maybe you can help?

Tags
Spreadsheet
Asked by
Arben
Top achievements
Rank 1
Share this question
or