Posted by: ayhan | 05/02/2013

C#’ta Excel’den aktif sheet’i almak…

Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.Application();
string workbookPath = "C:/Test/Kayitlar.xls";
Microsoft.Office.Interop.Excel.Workbook excelWorkbook = excelApp.Workbooks.Open(workbookPath);
Microsoft.Office.Interop.Excel._Worksheet activeSheet = (Microsoft.Office.Interop.Excel._Worksheet)excelWorkbook.ActiveSheet;

Image

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: