Page 1 of 1

Hiding specific series in BeforePrint event

Posted: Wed Nov 11, 2020 10:33 am
by pvb
I want to hide specific series before print, based on some condition.

I have tried to put something like this in BeforPrint event for Chart1

Code: Select all

Chart1.Series[0].LineStyle = "None";
But it does not work. I have an error "Cannot read property 0 of undefined".

Can you tell me the right syntax?