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...
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...
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...
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 ...
- Modified
- 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...
- Modified
- 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...
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...
- Modified
- 2 Sep at 11:11
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...
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,...
- Modified
- 3 Apr at 16:32
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...
- Modified
- 6 Dec at 13:3
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...
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...
- Modified
- 2 May at 22:5
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...
- Modified
- 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...
- Modified
- 9 May at 04:39
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....
- Modified
- 30 Mar at 22:3