We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Search/Replace changes fonts/ styling

Thread ID:





67363 Aug 15,2007 02:50 PM UTC Aug 21,2007 12:31 AM UTC ASP.NET Web Forms (Classic) 2
Tags: DocIO
Mark Bagnall
Asked On August 15, 2007 02:50 PM UTC

I am evaluating DocIO from Essential Studio under ASP.NET 2.0, and have noticed that when doing search/replace, the fonts for the entire document are changed.
Basically, what I do is read a document from a template, then perform a search/replace on all text enclosed in << >> characters.
The method that does this is shown below:
private static void DoReplacements(WordDocument templateDoc, string[] findMatches, string[] replaceValues)
if (findMatches.Length != replaceValues.Length)
throw new ApplicationException("replacement string and value arrays have different lengths");
for (int i = 0; i < findMatches.Length; i++)
templateDoc.Replace(findMatches[i], replaceValues[i], false, false);

Attached is the template document and the saved document - you can see that the font has changed to Arial followed by a strange character, and the bullets in the body of the document have become squares

Mark Bagnall
Replied On August 15, 2007 04:38 PM UTC

NB - This also happens with the sample code when run from my machine.

J.Nagarajan [Syncfusion]
Replied On August 21, 2007 12:31 AM UTC

Hi Mark,

Since the template document that you have mentioned in your update is missing. I have tested this issue in v. with the Find and Replace sample that comes along with our install. The sample can be found at the following path.

My Documents\Syncfusion\EssentialStudio\\Web\docio.web\Samples\2.0\Find And Replace\FindAndReplace

Here is my test results. The font used in the template file is preserved after replace operation done using DocIO and I am unable to reproduce this issue reported to us. Could you please let me know if you are able to reproduce this issue with this sample. If not could you provide with the template document, sample that you have used to reproduce this issue.

Kindly provide us the details. It would help us to investigate on this issue.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon