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: 0.75.0 works correctly. Problem seems to be the ordering of the elements underneath the ColorScale: Expected: ConditionalFormatValueObject ConditionalFormatValueObject ConditionalFormatValueObject Color Color Color Actual in 0.76.0: ConditionalFormatValueObject Color ConditionalFormatValueObject Color ConditionalFormatValueObject Color
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: 0.75.0 works correctly. Problem seems to be the ordering of the elements underneath the ColorScale: Expected: ConditionalFormatValueObject ConditionalFormatValueObject ConditionalFormatValueObject Color Color Color Actual in 0.76.0: ConditionalFormatValueObject Color ConditionalFormatValueObject Color ConditionalFormatValueObject Color