TextObjectBase.Click event doesn't work!

edited 10:58AM in FastReport .NET
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?

Comments

  • edited 10:58AM
    Hello,

    Use "Click" event in a report script, not in your program. I will try to make it working in the next versions.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.