Hi,
I'm opening/modifying/saving an existing Excel 2010 file. When I don't use conditional formatting > no pb to read it with MS Excel 2010 once I made the modifications. When I use conditional formatting (for instance with the following code :
xlWorksheet.Range( 4, 8, 4 + (dateTimeCount - 1), 8).AddConditionalFormat().ColorScale().Minimum(XLCFContentType.Percentile, 5.0, XLColor.LightCarminePink).Midpoint(XLCFContentType.Number, 0.0, XLColor.White).Maximum(XLCFContentType.Percentile, 95.0, XLColor.LightGreen );
The C# code executes without notice but the resulting XLS file can't be opened with MS Excel 2010 anymore. What's quite strange is that I use C# code which worked last year with an older version of ClosedXML (don't ask me which one, I lost the info) but which doesn't work anymore with the latest one (0.76.0).
Any help is welcome.
Eric
Comments: I'm not sure to understand what you means. I thought it could have to do with the number format as I read on a forum that ClosedXML has a problem when the Windows version not an english one is (and mine is a french one). There was a workaround but it was so cumbersome that I didn't give it a try...
I'm opening/modifying/saving an existing Excel 2010 file. When I don't use conditional formatting > no pb to read it with MS Excel 2010 once I made the modifications. When I use conditional formatting (for instance with the following code :
xlWorksheet.Range( 4, 8, 4 + (dateTimeCount - 1), 8).AddConditionalFormat().ColorScale().Minimum(XLCFContentType.Percentile, 5.0, XLColor.LightCarminePink).Midpoint(XLCFContentType.Number, 0.0, XLColor.White).Maximum(XLCFContentType.Percentile, 95.0, XLColor.LightGreen );
The C# code executes without notice but the resulting XLS file can't be opened with MS Excel 2010 anymore. What's quite strange is that I use C# code which worked last year with an older version of ClosedXML (don't ask me which one, I lost the info) but which doesn't work anymore with the latest one (0.76.0).
Any help is welcome.
Eric
Comments: I'm not sure to understand what you means. I thought it could have to do with the number format as I read on a forum that ClosedXML has a problem when the Windows version not an english one is (and mine is a french one). There was a workaround but it was so cumbersome that I didn't give it a try...