none
Replace words that satisfies some properties in MS Word Document RRS feed

  • Question

  • My requirement is that I want to replace those words that satisfies some properties. I have a word document with texts in various fonts and styles mixed. I want to replace the text with font say "Preeti". Preeti is a ASCII based Nepali font so I'm willing to change Words in Preeti to Unicode Nepali Characters. Thus I need to locate the words or sentences in Preeti, Process them and Replace with processed text.

    I'm using C# for programming. The Syntax I'm looking for is like:

                    if (word.Font.Name.Equals("Preeti"))
                    {
                        convert to Unicode and replace word
                    }


    Tuesday, December 30, 2014 3:38 AM

Answers

  • http://msdn.microsoft.com/en-us/library/8b7k14a4.aspx this can help

    Thanks, Ashish | Please mark a post helpful/answer if it is helpful or answer your query.

    Tuesday, December 30, 2014 3:55 AM

All replies

  • http://msdn.microsoft.com/en-us/library/8b7k14a4.aspx this can help

    Thanks, Ashish | Please mark a post helpful/answer if it is helpful or answer your query.

    Tuesday, December 30, 2014 3:55 AM
  • Hello,

    VSTO doesn't provide anything for that. I'd suggest asking Word-specific questions on the Word for Developers forum instead.

    Thursday, January 1, 2015 1:37 PM