Find and replace a word document content using c# RRS feed

  • Question

  • I need to replace some text in my word document(copied in HTML format) with empty string while maintaining the format.I suppose that WordApplication.ActiveDocument.Content.Text has to be replaced .Does anyone have the sample code for this?

    Friday, January 27, 2012 11:53 AM

All replies

  • Hi Ams

    I'm not sure I understand the question. Where does the HTML you mention fit into your question?

    Which version of the Word file format is involved (docx or the old doc)?

    Should the user be interacting with this document in any way?

    Cindy Meister, VSTO/Word MVP
    Friday, January 27, 2012 4:46 PM