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

  • Home
  • SEARCH
  • 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 6108539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:18:24+00:00 2026-05-23T14:18:24+00:00

I made a little function that opens a WordDocument at a given file location.

  • 0

I made a little function that opens a WordDocument at a given file location. I’d like to enable the balloons when the document shows up.

Here’s the code so far:

    public static Document OpenWordDocument(object fileName)
    {
        ApplicationClass application = new ApplicationClass();
        object readOnly = false;
        object isVisible = true;
        object missing = Missing.Value;

        application.Visible = true;
        Document wordDocument = application.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing);

        wordDocument.TrackRevisions = true;
        //Do something here the enable balloons
        wordDocument.Activate();

        return wordDocument;
    }

enter image description here

TO

enter image description here

  • 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-05-23T14:18:25+00:00Added an answer on May 23, 2026 at 2:18 pm
     using Microsoft.Office.Interop.Word;
    

    The main properties for enable the balloon is :

    //enable tracking change
    wordDocument.TrackRevisions = true;
    wordDocument.ActiveWindow.View.MarkupMode = WdRevisionsMode.wdBalloonRevisions;
    

    you can also add these setting

    //the balloon will be on the right side
    wordDocument.ActiveWindow.View.RevisionsBalloonSide = WdRevisionsBalloonMargin.wdRightMargin;
    
    // the ballon section width will been calculate in percent
    wordDocument.ActiveWindow.View.RevisionsBalloonWidthType = WdRevisionsBalloonWidthType.wdBalloonWidthPercent;
    
    //make sure the balloon will not been cut, the balloons section is egal to the doc with(100%)
    wordDocument.ActiveWindow.View.RevisionsBalloonWidth = 100.0f;
    
    //make sur Word show  the final version with the revisions
    wordDocument.ActiveWindow.View.RevisionsView = WdRevisionsView.wdRevisionsViewFinal;
    
    //True for Microsoft Word to display revisions and comments that were made to a document with Track Changes enabled
    wordDocument.ActiveWindow.View.ShowRevisionsAndComments = true;
    
    //True for Microsoft Word to display insertions and deletions that were made to a document
    wordDocument.ActiveWindow.View.ShowInsertionsAndDeletions = true;
    

    Be sure to have Microsoft Word 2010 or 2007 and the latest Microsoft.Office.Interop.Word.dll

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've made a little function that sends data from two forms to a PHP
I made this little Cocoa app with a WebView that displays Google Maps in
I am not that hot at regular expressions and it has made my little
So I have made a little piece of code that will insert and manipulate
It's often the case that I can write a nice tight little VB.NET function,
I have just made my first proper little desktop GUI application that basically wraps
I made a function that overwrite the the :hover of some elements on a
I have made a function that connects to a models 'pre_save' signal. Inside the
i've made some little widget-plugins which are getting applied to eg. a textbox like
I made a little search-function with javascript to look for a string in a

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.