locked
Compare Word Documents in windows application RRS feed

  • Question

  • Hi,
    I am using Microsoft.Office.Interop.Word.Document.Compare functionality in my application.After compare it pops up for saving the compared document result saying "Do you want to save changes to Compare Result 1". I need to restrict the pop up in my application. can any one help me in this.

    Thanks

    karthik
    Saturday, August 8, 2009 5:22 AM

Answers

  • Helllo,

    If you don't want this prompt pops up, we could save the document(Document.Save())manually before close the  Compare Result 1, or use Document.Close method to close it without save.

    Thanks


    We have published a VSTO FAQ recently, you can view them from the entry thread VSTO FAQ.
    If you have any feedbacks or suggestions on this FAQ, please feel free to write us emails to colbertz@microsoft.com.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Proposed as answer by Shasur Friday, August 14, 2009 2:05 AM
    • Marked as answer by Tim Li Monday, September 7, 2009 5:51 AM
    Thursday, August 13, 2009 9:04 AM

All replies

  • Can you setting the DisplayAlerts property of the application to wdAlertsNone

    Application.DisplayAlerts = wdAlertsNone

    Cheers
    Shasur
    http://www.vbadud.blogspot.com
    Saturday, August 8, 2009 3:32 PM
  • Hi,
    I am still getting the popup after the Microsoft.Office.Interop.Word.Document.Compare()
    Thanks

    karthik
    Monday, August 10, 2009 8:36 AM
  • Helllo,

    If you don't want this prompt pops up, we could save the document(Document.Save())manually before close the  Compare Result 1, or use Document.Close method to close it without save.

    Thanks


    We have published a VSTO FAQ recently, you can view them from the entry thread VSTO FAQ.
    If you have any feedbacks or suggestions on this FAQ, please feel free to write us emails to colbertz@microsoft.com.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Proposed as answer by Shasur Friday, August 14, 2009 2:05 AM
    • Marked as answer by Tim Li Monday, September 7, 2009 5:51 AM
    Thursday, August 13, 2009 9:04 AM