Hello,
Glad to inform you that the issue of conditional format has been fixed. Please download Spire.XLS Pack Hotfix Version:7.12.144 and give it a try.
Sincerely,
Simon
E-iceblue support team
ws.Range["A1:A4"].Value = "2007";
ws.Range["B1:B4"].Value = "2008";
var cond = ws.Range["A1:B4"].ConditionalFormats.AddCondition();
cond.FormatType = ConditionalFormatType.ContainsText;
cond.FirstFormula = "7";
cond.FontColor = Color.Aqua;
cond.BackColor = Color.Blue;
ws.Range["A1:A4"].Value = "AA";
ws.Range["B1:B4"].Value = "BB";
var cond = ws.Range["A1:B4"].ConditionalFormats.AddCondition();
cond.FormatType = ConditionalFormatType.ContainsText;
cond.FirstFormula = "A"; // 'A is not valid named range'
cond.FontColor = Color.Aqua;
cond.BackColor = Color.Blue;
cond.FirstFormula = cond.MakeFormula("A");
Workbook workBook = new Workbook();
Worksheet ws = workBook.Worksheets[0];
ws.Range["A1:A4"].Value = "AA";
ws.Range["B1:B4"].Value = "BB";
XlsConditionalFormats xcfs = ws.ConditionalFormats.Add();
xcfs.AddRange(ws.Range["A1:B4"]);
IConditionalFormat cf = xcfs.AddContainsTextCondition("A");
cf.FontColor = Color.Aqua;
cf.BackColor = Color.Blue;
workBook.SaveToFile(outputFile, FileFormat.Version2010);