Get Control

edited 10:45AM in FastReport .NET
Hi,

Before call out the report to preview. If i would like know what controls and how many controls in that particular report, how to i do so?

Tq

Comments

  • edited 10:45AM
    Hello,

    foreach (FastReport.Base c in report.AllObjects)
    {
    // do something with c...
    }
  • edited 10:45AM
    i had a control name txtReportName


    How can i set the txtReportName.text became "123" Or how i can get the text for txtreportname in coding.


    TQ.
    AlexTZ wrote: »
    Hello,

    foreach (FastReport.Base c in report.AllObjects)
    {
    // do something with c...
    }
  • edited 10:45AM
    (report.FindObject("txtReportName") as TextObject).Text = "123";

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.