Add new custom object to band

edited August 2012 in FastReport .NET
Hi,

I created designer control, report control. I have a Custom object (myObj) inherited from TextObject. I registered my custom object into Fast Report.
I want to create myObj control into band.

Like this;
DataBand band = report1.FindObject("Data1") as DataBand;
myObj text = new myObj();
text.Bounds = new RectangleF(3, 5, Units.Centimeters * 10, Units.Centimeters * 0.5f);
band.Objects.Add(text);

I have a new object in the report but i cant see it. My designer is not refreshing..
I tried refresh, refreshLayout, report.Design(), but it doesn't work.

I need help.. [img]style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> Thanks.[/img]

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.