Top "Office-interop" questions

Office Interop is the layer using the COM Interop that allows .NET or C# to communicate with standard COM objects and libraries.

Outlook 2007 from C# - COM exception, TYPE_E_LIBNOTREGISTERED

I'm trying to make a program that would open new Outlook 2007 message. I've referenced from COM tab Microsoft Outlook 12.0 ObjectLibrary. …

c# com interop outlook-2007 office-interop
How to access an already opened Excel file in C#?

I have an excel workbook opened via double-clicking it in windows explorer but cannot access it in code Excel.Application …

c# excel ms-office office-interop excel-interop
Automating MS Word in Server 2012 R2

Firstly, please don't reply with the generic advice not to automate Word on a server or a link to the …

automation ms-word ms-office office-interop
Unable to cast COM object of Office Interop Word

My application has a feature to export to Microsoft Word, but it hasn't worked since I've upgraded from Microsoft Office 2010 …

.net com ms-office office-interop
Error loading type library/DLL (Microsoft.Office.Interop.Excel.Application)

I'm trying to create an Excel document via C#. When I run the application, it gives the following error: Unable …

visual-studio-2012 ms-office office-interop office-2013
How can I change the font color of a TextRange in PowerPoint from C#?

I created a PowerPoint presentation using C#: PowerPoint.Application powerpointApplication; PowerPoint.Presentation pptPresentation; PowerPoint.Slide Slide; // Create an instance of …

c# .net powerpoint office-interop textrange
Accessing an open Excel Workbook in C#

I need to access an excel file that is already open. I thought just inspecting the .Workbooks property that it …

c# excel ms-office office-interop excel-interop
How to create Microsoft.Office.Interop.Word.Document object from byte array, without saving it to disk?

How can I create a Microsoft.Office.Interop.Word.Document object from byte array, without saving it to disk using …

c# ms-word office-interop
How to set the file name of a word document without saving it from c# and automation

I create word documents via automation and mailmerge with office Interop from c# (.net4). The merge works well and the …

.net ms-word office-interop mailmerge
Delete Empty Rows with Excel Interop

I have user supplied excel files that need to be converted to PDF. Using excel interop, I can do this …

c# office-interop excel-interop