Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7862637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:13:10+00:00 2026-06-02T23:13:10+00:00

I am looking for a .net winforms component that can compare two formatted documents

  • 0

I am looking for a .net winforms component that can compare two formatted documents (in .doc, .docx, .html, .rtf, any one of them will do) and visually spot changes. We prefer to see the changes as MS Word does when it shows the changes in its track changes mode

We expect short documents of only few pages long and not much editing (few words changed, a paragraph added/deleted, etc)

Are you aware of such a component that you can recommend free or otherwise

Thank you,
Kemal

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T23:13:11+00:00Added an answer on June 2, 2026 at 11:13 pm

    Following code will compare two word doc and save the merging of changes in third doc.

    Add reference of Microsoft Word 12.0 Object Library

    using Microsoft.Office;
    
    public static void comp()
    {
    
        object missing = System.Reflection.Missing.Value;
    
        //create a readonly variable of object type and assign it to false.
    
        object readonlyobj = false;
    
        object filename = "C:\\romil1.docx";
    
        //create a word application object for processing the word file.
    
        Microsoft.Office.Interop.Word.Application app = new Microsoft.Office.Interop.Word.Application();
    
        //create a word document object and open the above file..
    
        Microsoft.Office.Interop.Word.Document doc = app.Documents.Open(
    
        ref filename, ref missing, ref readonlyobj, ref missing, ref missing,
    
        ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
    
        string filenm = "C:\\romil2.docx";
    
        object filenm3 = "C:\\romil3.docx";
    
        doc.TrackRevisions = true;
    
        doc.ShowRevisions = false;
    
        doc.PrintRevisions = true;
    
        doc.Compare(filenm);
    
        doc.Close(Microsoft.Office.Interop.Word.WdSaveOptions.wdDoNotSaveChanges);
    
        app.ActiveDocument.SaveAs(ref filenm3, ref missing, ref readonlyobj, ref missing, ref missing,
    
        ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
    
        app.Quit(Microsoft.Office.Interop.Word.WdSaveOptions.wdSaveChanges);
    
        MessageBox.Show("Process complete");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking and .Net Rich Editor that generates HTML, it is important to be capable
I'm looking for something that provides interactive meta-data about a running .NET WinForms application.
I have a desktop(winforms) application, and I'm looking for .net linker that links the
Can any one recommend me a good book for Winforms in .net 4.0 C#.
When looking at disassembled .NET assemblies I notice that constructors are defined as .ctor
I am looking for a .NET library (or, more specifically, a .NET component) which
I'm looking for a .NET image processing component or an open source alternative to
I'm looking for suitable .NET class that allows me to store a large number
Environment: .net 3.5 WinForms application I am looking for some ideas how to stop
Looking for a tool to UI testing of a Windows (.NET WinForms) application. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.