Bind Variable type (as object ) in report

Stimulsoft Reports.NET discussion
Post Reply
nitin.sharma870
Posts: 4
Joined: Wed May 15, 2019 1:21 pm

Bind Variable type (as object ) in report

Post by nitin.sharma870 »

Hi,

I have a dynamic object on C#.

dynamic data = new {REG = new {Gender="male"}});
report["myvariable"]=data ;

In MRT I have a variable ("myvariable") as object type but I am not able to show the value of Gender property on the label.


referring value on MRT as : {myvariable.REG.Gender}
Lech Kulikowski
Posts: 6264
Joined: Tue Mar 20, 2018 5:34 am

Re: Bind Variable type (as object ) in report

Post by Lech Kulikowski »

Hello,

> referring value on MRT as : {myvariable.REG.Gender}

It is not possible for variables.

You can use business objects in that case.

Thank you.
Post Reply