Replace distinguish majuscules and minuscules?

Technical support for Spire.Doc

Moderator: iceblue support

Replace distinguish majuscules and minuscules?

Postby tom » Thu Jan 06, 2011 9:17 am

In Spire.Doc, can the function of Replace distinguish majuscules and minuscules? If can, could you give me a demo? Thank you.
tom
 
Posts: 14
Joined: Tue Nov 30, 2010 7:21 am

Re: Replace distinguish majuscules and minuscules?

Postby iceblue support » Fri Jan 07, 2011 9:22 am

Thank you for your inquiry. For sure, in Spire.Doc Replace function can distinguish majuscules and minuscules. The third parameter of the document.Replace method is used to distinguish majuscules and minuscules. I give you an example.
Document document = new Document();
document.LoadFromFile("FindAndReplace.doc");
document.Replace("Word", "Excel", true, true);
document.SaveToFile("Sample.doc", FileFormat.Doc);
And you can change the first "true" of document.Replace method to "false". You will find the difference.
e-iceblue support
User avatar
iceblue support
 
Posts: 244
Joined: Tue Dec 21, 2010 2:56 am


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 1 guest