Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Fri Jan 12, 2018 8:55 am

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
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Tue Jan 16, 2018 6:54 am

Hello,

Greeting from E-iceblue.
Has the hotfix resolved your issue?
Your feedback will be greatly appreciated.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Wed Feb 21, 2018 3:09 pm

Hello

Thanks for the hotfix. it resolved some issues but i have others :)

I want to create a containsText Conditional format but Range["A1:B4"] is blue, not just .Range["A1:A4"]
Code: Select all
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;

CondFormat.PNG
CondFormat.PNG (28.43 KiB) Viewed 3518 times



And other issue, a containsText Conditional format on text value :
Code: Select all
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;


I have an message 'A is not valid named range'

Thanks :)

VincentB
 
Posts: 120
Joined: Thu Sep 15, 2016 9:44 am

Thu Feb 22, 2018 6:01 am

Hello,

The value of FirstFormula needs to use the MakeFormula method to assign. Here is the code for your reference. Sorry for inconvenience, we will consider changing this way.
Code: Select all
cond.FirstFormula = cond.MakeFormula("A");


Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Thu Feb 22, 2018 2:50 pm

Hello,

Thanks of the MakeFormula method, it's work :)

I can change value in Excel cell and ConditionalFormat is ok but i do'nt know how i do'nt see conditiond value in Excel config :
cf.png
cf.png (24.45 KiB) Viewed 3507 times


Thanks

VincentB
 
Posts: 120
Joined: Thu Sep 15, 2016 9:44 am

Fri Feb 23, 2018 5:16 am

Hello,

Thanks for your feedback. I have noticed the issue and posted it to our Dev team, once it is resolved, or we have some other update, we will let you know.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Wed Apr 18, 2018 4:04 am

Hello,

Glad to inform your that the issue has been fixed. Please download Spire.XLS Pack(Hotfix) Version:8.4.6 and refer to the below code snippet to have a try.
Code: Select all
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);


Sincerely,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Thu Apr 19, 2018 8:49 am

Hello,

Greeting from E-iceblue.
Has the hotfix resolved your issue?
We will appreciate it if you could give us some feedback.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Thu Apr 19, 2018 9:31 am

Hello,

It's work !

Thanks

VincentB
 
Posts: 120
Joined: Thu Sep 15, 2016 9:44 am

Thu Apr 19, 2018 9:43 am

Hi Vincent,

Thanks for your prompt reply. If there is any other question, welcome to write to us.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Return to Spire.XLS

cron