TextObjectBase.Click event doesn't work!
I write code like this:
ReportTitleBand TitleBand = FReport.FindObject("ReportTitle1") as ReportTitleBand;
TextObject text = new TextObject();
text.Name = "Text";
text.Bounds = new RectangleF(0, 0,Units.Centimeters * 10, Units.Centimeters * 0.5f);
text.Text = "test";
text.Font = new Font("Tahoma", 8);
text.Click += new EventHandler(text_Click);
TitleBand.Objects.Add(text);
...
void text3_Click(object sender, EventArgs e)
{
}
While preview this Report, I click this TextObject. It can't run in text3_Click function. Why? Is this a bug?
ReportTitleBand TitleBand = FReport.FindObject("ReportTitle1") as ReportTitleBand;
TextObject text = new TextObject();
text.Name = "Text";
text.Bounds = new RectangleF(0, 0,Units.Centimeters * 10, Units.Centimeters * 0.5f);
text.Text = "test";
text.Font = new Font("Tahoma", 8);
text.Click += new EventHandler(text_Click);
TitleBand.Objects.Add(text);
...
void text3_Click(object sender, EventArgs e)
{
}
While preview this Report, I click this TextObject. It can't run in text3_Click function. Why? Is this a bug?
Comments
Use "Click" event in a report script, not in your program. I will try to make it working in the next versions.