N
news.microsoft.com
Not sure the best group to post to, so sorry for the cross post .
There are several posts out there of how to automate excel from .net, i.e in
the sample below, they are using Excel 9.0... However, on my machine, I have
12.0... no big deal.. I see both in the post below, and on my machine, there
is also a 'Microsoft Excel 5.0 Type Library'. Is it best to use this
reference to be able to target an arbitrary version? I'd assume that there
are obvious limitations in using an older version, but I'd assume that the
basics of reading/writing cells, navigating, creating a sheet, etc, would be
supported?
Is my thinking correct, or is there another 'best practice' to version proof
a utility that will be shared with others that may/may not have the same
version I have?
http://www.c-sharpcorner.com/Upload...dReadanExcelSpreadsheetinaListViewin.NET.aspx
"The first step is to create a reference in your project to Excel 9.0
Objects Library. This is done by right mouse clicking on the References
folder in the Solution Explorer and choosing Add Reference. This brings up
the Tab Dialog below. Choose the COM Tab and pick Microsoft Excel 9.0
Objects Library."
There are several posts out there of how to automate excel from .net, i.e in
the sample below, they are using Excel 9.0... However, on my machine, I have
12.0... no big deal.. I see both in the post below, and on my machine, there
is also a 'Microsoft Excel 5.0 Type Library'. Is it best to use this
reference to be able to target an arbitrary version? I'd assume that there
are obvious limitations in using an older version, but I'd assume that the
basics of reading/writing cells, navigating, creating a sheet, etc, would be
supported?
Is my thinking correct, or is there another 'best practice' to version proof
a utility that will be shared with others that may/may not have the same
version I have?
http://www.c-sharpcorner.com/Upload...dReadanExcelSpreadsheetinaListViewin.NET.aspx
"The first step is to create a reference in your project to Excel 9.0
Objects Library. This is done by right mouse clicking on the References
folder in the Solution Explorer and choosing Add Reference. This brings up
the Tab Dialog below. Choose the COM Tab and pick Microsoft Excel 9.0
Objects Library."