Top "Excel-interop" questions

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

Strange error on Excel Workbook input

For the current code: String currentPath = Directory.GetCurrentDirectory(); OpenFileDialog op = new OpenFileDialog(); op.InitialDirectory = currentPath; if (op.ShowDialog() == DialogResult.OK) …

c# visual-studio-2010 excel excel-interop
Save XLS Using Interop Excel

The Current Setup: So, I can use the following code to save a file as an XLS: _myWorkbook.SaveAs("FileName.…

c# vb.net excel office-interop excel-interop
Export the dataGridView to Excel with all the cells format

I have this code that I know that it works fast CopyAlltoClipboard(dataGridViewControl); Microsoft.Office.Interop.Excel.Application xlexcel; Microsoft.…

c# .net datagridview excel-interop cell-formatting
drawing line graph with primary and secondary y axis c#

I have been researching ways of drawing charts in c#. I have a specific requirement of drawing a chart with …

c# mschart excel-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
Exporting Several XtraGrid Controls to a Single Excel File

I've got several XtraGrid Controls each one containing different information, I get some information about the way in which you …

devexpress export-to-excel excel-interop xtragrid
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
Excel Automation - how to just say No

I'm working on a vb.net console app that opens a number of spreadsheets one by one, reads in a …

vb.net excel automation interop excel-interop
How to update PivotTable data source using C#?

I would like to know how to update an existing pivot table data source. I am using Microsoft.Office.Interop.…

c# excel-interop
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