Follow

Changing value of the text component in a compiled report at runtime

Here is a sample code how to change text value at runtime:

C#
            StiText txt = report.GetComponentByName("Text1") as StiText;
            txt.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(txt_GetValue);
           
        ...

        void txt_GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
        {
            e.Value = newValue;
        }

0 Comments

Please sign in to leave a comment.
Powered by Zendesk