Hiding specific series in BeforePrint event
Posted: Wed Nov 11, 2020 10:33 am
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
But it does not work. I have an error "Cannot read property 0 of undefined".
Can you tell me the right syntax?
I have tried to put something like this in BeforPrint event for Chart1
Code: Select all
Chart1.Series[0].LineStyle = "None";
Can you tell me the right syntax?