Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

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.

Posts: 14
Joined: Tue Nov 30, 2010 7:21 am

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.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: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.Doc