tagged [ms-office]

Is there a way to access a Ribbon (XML) at run time?

Is there a way to access a Ribbon (XML) at run time? I'm working on a Word 2007 app-level add-in. So far, I haven't experienced major obstacles except for converting the add-in's Ribbon interface to X...

5 Aug at 18:44

Open and modify Word Document

Open and modify Word Document I want to open a word file saved in my server using "Microsoft.Office.Interop.Word". This is my code: ``` object missing = System.Reflection.Missing.Value; object readO...

31 Mar at 20:10

Where can I find Microsoft.Office.Interop.Word.dll (2010)?

Where can I find Microsoft.Office.Interop.Word.dll (2010)? I got the sources of a .NET project that I am trying to compile. Although, the project uses the reference (namespace) Microsoft.Office.Intero...

11 May at 12:29

RCW & reference counting when using COM interop in C#

RCW & reference counting when using COM interop in C# I have an application that uses Office interop assemblies. I am aware about the "Runtime Callable Wrapper (RCW)" managed by the runtime. But I am ...

7 Apr at 21:53

How to develop a Microsoft Office AddIn without Visual Studio

How to develop a Microsoft Office AddIn without Visual Studio I'm trying to develop an MS Office Addin in C# .Net and I don't have access to Visual Studio. Instead I'm using SharpDevelop as my IDE, (b...

7 Dec at 12:53

Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE) Workarounds

Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE) Workarounds From the following call I get a > Operation unavailable (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE)) I believe that this er...

8 Apr at 17:1

Writing and Reading excel files in C#

Writing and Reading excel files in C# I am writing a program that takes data from a website via selenium web driver. I am trying to create football fixture for our projects. I am so far, I accomplishe...

Recover URL from MS Word fields showing "Error! Hyperlink reference not valid"

Recover URL from MS Word fields showing "Error! Hyperlink reference not valid" I have some word documents that have place holder URL's in them. The URL's are something like "[http:///service.svc](http...

8 Jun at 14:12

Proper disposal of COM interop objects in C# particularly MS Office applications

Proper disposal of COM interop objects in C# particularly MS Office applications I am developing an application that relies heavily on multiple Microsoft Office products including Access, Excel, Word,...

Customizing Outlook Navigation Pane and Forms Outlook 2010

Customizing Outlook Navigation Pane and Forms Outlook 2010 I have two main issues I am trying to address and after a while searching haven't found what I need to achieve. I have created a custom Outlo...

Get a list of all Access ACE.OLEDB drivers installed on the system

Get a list of all Access ACE.OLEDB drivers installed on the system Using the following code I can enumerate the OLEDB providers registered on my system ``` static void DisplayData() { var reader = Ol...

6 Feb at 05:2

Programmatically configuring MS-Word's Trust Center settings using C#

Programmatically configuring MS-Word's Trust Center settings using C# I have developed a simple C# Winforms application that loads MS-Word 2007 documents via COM automation. This is all very simple an...

How can I run a macro from a VBE add-in, without Application.Run?

How can I run a macro from a VBE add-in, without Application.Run? I'm writing a COM add-in for the VBE, and one of the core features involves executing existing VBA code upon clicking a commandbar but...

20 Jun at 09:12

How to produce documents (docx or pdf) from SQL Server?

How to produce documents (docx or pdf) from SQL Server? I know this is a little subjective, but I'm looking into the following situation: I need to produce a number of documents automatically from dat...

A Way to Automate the "Compile" Function of MS Office's VBA Code

A Way to Automate the "Compile" Function of MS Office's VBA Code Typically when I make a change to a VBA file I like to compile it to ensure my changes didn't break anything: [](https://i.stack.imgur....

30 Mar at 22:3