Is there a way to show self defined Object?

edited 9:43PM in FastReport .NET
I want to show self defined object in report at runtime.
e.g. in TextObject's before print event, show a string or picture at fixed position, but the string or picture is not designed in frx file

Comments

  • edited 9:43PM
    Hello,

    You may create a new TextObject in code, like this:

    TextObject newObject = new TextObject();
    newObject.Bounds = new RectangleF(0, 0, 30 * Units.Millimeters, 10 * Units.Millimeters);
    newObject.Text = "new text";
    newObject.Parent = Data1; // the name of the band which will contain the new object

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.