Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Excel Interop

$
0
0

           Application ExcelApp = new Application();

           Workbook ExcelWorkBook = ExcelApp.Workbooks.Add(1);

           Worksheet ExcelWorkSheet = (Worksheet)ExcelWorkBook.Sheets[1];

           ExcelWorkSheet.Cells[1, 1] = "test";

           ExcelWorkBook.SaveAs(@"C:\temp\test1.xlsx");

           ExcelWorkBook.Close();

           ExcelApp.Quit();

Here is the C# code.


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>