This project has moved. For the latest updates, please go here.

DLL and Assembly Reference

May 24, 2012 at 6:33 PM

Newbiw here.  My ASP.NET C# project has a reference already to DocumentFormat.OpenXML.  I never saw anything about it, but I assumed I also needed to reference the ClosedXML.dll.  Done.

So trying out the very, very basic examples I keyed in "var workbook = new XLWorkbook();", right from the sample code in the documentation.  I'm already in trouble as no Namespace "XLWorkbook" can be found.

Something stupid and simple, right?  Little help please.

Coordinator
May 24, 2012 at 6:47 PM

You're missing "using ClosedXML.Excel;". VS can help you in these kinds of situations if the cursor is on XLWorkbook and you press Ctrl + "." (dot)