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.

Reading data from excel 2010 using Microsoft.Office.Interop.Excel

I am not able to read data in Excel. Here is the code I am using: using Excel = Microsoft.Office.…

c# .net excel office-interop
How to create word docs programmatically from a template

I am trying to create about 600 reports in Microsoft office Word. The documents are populated with data from a database, …

c# ms-word office-interop
C#: How can I open and close an Excel workbook?

Does anyone know how to simply open and close an Excel workbook? I don't need to read any data from …

c# excel office-interop aspose
programmatically excel cells to be auto fit width & height

when i convert datatable to .csv my excel sheets are generated as below: and tried like below: sw.Write(string.…

c# excel office-interop
Obtaining Excel worksheet reference by worksheet name via C#

I'm currently obtaining a handle to a Excel worksheet by using the below C# code: Excel.Worksheet worksheet = (Excel.Worksheet)…

c# excel office-interop
c# word interop find and replace everything

I have some code to replace text inside a word 2010 docx. object fileName = Path.Combine(System.Windows.Forms.Application.StartupPath, "…

c# visual-studio-2010 ms-word office-interop office-2010
C# Create Excel workbook with 1 sheet by default

I'm trying to create an Excel file with C# COM interop but seems it create it by default with 3 sheets …

c# excel office-interop
Reading Outlook Mail with C#

I am using the following code as I attempt to connect to my Outlook mail. Now, I must be doing …

c# outlook office-interop
Get instance of Excel application with C# by Handle

I have a c# simple application that have to write some values in a excel ranges of a specific worksheet. …

c# excel office-interop
Microsoft Interop: Excel Column Names

I am using Microsoft Interop to read the data. In excel-sheet the column-names are like A,B,C,D,....,AA,…

c# office-interop excel-interop