BeforePrint event not firing
Posted: Mon Sep 21, 2009 9:19 am
I have the following code :
StiText dataText = new StiText(new RectangleD((count * size), 0, size, 0.5));
dataText.HorAlignment = colInfo.alignment;
dataText.Text = "{" + tableName + "." + col.ColumnName + "}";
dataText.Name = dataBand.Name + "_DataText_" + dataBand.Components.Count;
dataText.GrowToHeight = true;
dataText.BeforePrint += new EventHandler(highlightRowCallback);
void highlightRowCallback(object sender, EventArgs e) {
throw new NotImplementedException();
}
I output the report to file and previewer. Report looks fine - rows and columns contain correct data - but the event never fires. Can you please help understand why this is the case?
I'm using Report.WPF 2009.1
Thanks.