Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: Best practice for using ClosedXML in an Excel AddIn?

$
0
0
I am sure you folks are aware of the ambiguity between the assemblies:

Microsoft.Office.Interop.Excel

and

Microsoft.Office.Tools.Excel

My applications (AddIns) are becoming more and more complex. After winging it for years, I am afraid I need to take a more formal approach in order to stay away from this source of potential trouble.

I have casting all over and have code like this:
    Microsoft.Office.Interop.Excel.Range dstRange = worksheet.get_Range("B3");
    dstRange.Value2 = text;
which can be done in a nicer way with ClosedXML.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



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