I have a Dundas chart being used in a SSRS Report with some custom code in the PostInitilize Event that looks something like this:
foreach(CustomLabel curLabel in chartObj.ChartAreas[0].AxisY.CustomLabels)
{
curLabel.GridTick = GridTick.None;
curLabel.Text = Convert.ToString(Convert.ToInt32(curLabel.Text) - 10);
}
Its takes each axis label and reduces the value by 10.
This works great on my machine, it even works fine on the production server in report viewer. But when this report is run as a subscription, the code fails to run. The report generates just fine but the axis labels are unchanged.
How could this be happening? What is different about running a report as a subscription?