Method not found
See original GitHub issueI installed ClosedXML.Report (version 0.2.6) [Dependencies ClosedXML version is 0.97.0) from the NuGet and write a simple program. When I run program, it’s OK. I also upgraded ClosedXML to the latest (version 0.100.3) and then when I run, I got this error message.
System.MissingMethodException HResult=0x80131513 Message=Method not found: ‘Void ClosedXML.Excel.IXLCell.set_Value(System.Object)’. Source=ClosedXML.Report StackTrace: at ClosedXML.Report.RangeInterpreter.ParseTags(IXLRange range, String rangeName) at ClosedXML.Report.RangeInterpreter.Evaluate(IXLRange range) at ClosedXML.Report.XLTemplate.Generate() at Program.<Main>$(String[] args) in D:\ConsoleApp\Program.cs:line 18
Here is the source.
var template = new XLTemplate(@"D:\Simple.xlsx");
var file = @"D:\Simple data.xlsx";
var cust = Customer.Default();
template.AddVariable(cust);
template.Generate();
template.SaveAs(file);
Process.Start(new ProcessStartInfo(file) { UseShellExecute = true });
I think, should be upgraded ClosedXML.Report to be working together with lasted update of ClosedXML.
Issue Analytics
- State:
- Created 7 months ago
- Reactions:6
- Comments:19 (6 by maintainers)
Top GitHub Comments
Versions 0.2.7 and 0.2.8 (referencing ClosedXML 0.100 and 0.101, respectively) have been released lately. The version 0.2.9 (referencing 0.102) is on its way.
I cloned the ClosedXML.Report source and then made some fixes. Now it’s working with ClosedXML version 0.100.3 (no more errors and output results correctly) but I am not sure all features of ClosedXML.Report is working or not.