Get Variables from Report

Stimulsoft Reports.NET discussion
Post Reply
ape
Posts: 20
Joined: Thu Jul 03, 2008 2:21 am

Get Variables from Report

Post by ape »

Is it possible to get in a c# file a list of variables which are defined in a report?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Get Variables from Report

Post by Edward »

Hello.

Yes, it is possible. Please inspect this list like this:

Code: Select all

foreach (Stimulsoft.Report.Dictionary.StiVariable variable in report.Dictionary.Variables)
{
        if (!variable.IsCategory)
       { .... }
}
Thank you.
ape
Posts: 20
Joined: Thu Jul 03, 2008 2:21 am

Get Variables from Report

Post by ape »

Thank you =)
Post Reply