How to populate a Microsoft365 word document using C#

TROY c 60 Reputation points
2024-04-04T13:17:38.2966667+00:00

Using Visual Studio 2010 - writing software to populate a word doc. I do not have Microsoft Office, I'm using Microsoft 365 so the instruction

 using word = Microsoft.Office.Interrop.Word; 
```Is not recognized.,
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft 365 and Office | Word | For business | Windows
Developer technologies | C#
{count} votes

Accepted answer
  1. Michael Taylor 60,161 Reputation points
    2024-04-04T16:13:13.8366667+00:00

    Office and MS 365 are now one and the same. If you have a license for MS 365 then you have a license to download and run Office. Install Word on your dev machine and you should be able to develop.

    Note that VS 2010 is out of support and is on the list of apps that won't work correctly with source control and whatnot going forward. Unless there is a compelling reason you should go ahead and switch to Visual Studio 2022. The Community edition is free for non-commercial or hobbyist use. It will give you access to the later frameworks. VS 2010 supported .NET Framework v4 which is on the last supported version of 4.8 right now. However the tooling and compilers are grossly out of date. If you're building an app that needs to run on modern OS versions then switch to the newer VS version so you can use the newer tooling and support that you'll need.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Damarcus Jones 20 Reputation points
    2024-04-04T14:48:10.7366667+00:00
    
    
    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.