Access "Range" or "List" variables

Stimulsoft Reports.NET discussion
Post Reply
yminc
Posts: 7
Joined: Wed Oct 17, 2012 2:13 pm

Access "Range" or "List" variables

Post by yminc »

Hi,
Could anyone explain how to setup so that I can get either the From value from a "Range" variable (String type), or the List options from my code in VB.NET?

We were trying to create a drop down list in our application forms dynamically (depends on the parameters of the report). Right now, I was trying to find a easy way to get the item list of the dropdown parameter.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Access "Range" or "List" variables

Post by HighAley »

Hello.
yminc wrote:Could anyone explain how to setup so that I can get either the From value from a "Range" variable (String type), or the List options from my code in VB.NET?

We were trying to create a drop down list in our application forms dynamically (depends on the parameters of the report). Right now, I was trying to find a easy way to get the item list of the dropdown parameter.
Please, describe your problem more detailed.
Did you create variables in report?
Where do you want to change its value?
What form do you use?

Thank you.
yminc
Posts: 7
Joined: Wed Oct 17, 2012 2:13 pm

Re: Access "Range" or "List" variables

Post by yminc »

Hi, I did created a variable in the report. And I was trying to use
objStimulReport.Dictionary.Variables(index).??? to get the list of items I stored in the Range From field.

I might have done it wrong, since there is not any property for me to get the list there. So I am asking if there is another way of doing this?

Thank you for your help
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Access "Range" or "List" variables

Post by HighAley »

Hello.

Here is a sample code for this before compilation:
Code:
StiReport report = new StiReport();
report.Load("d:\\stimulsoft\\1\\ReportArguments2.mrt");
report.Dictionary.Variables["Variable1"].Value = yourCancatenatedString;
report.Compile();
report.Render(false);
report.Show();

or after compilation:
Code:
report.Compile();
report["Variable1"] = yourCancatenatedString;
report.Render(false);
report.Show();

Thank you.
yminc
Posts: 7
Joined: Wed Oct 17, 2012 2:13 pm

Re: Access "Range" or "List" variables

Post by yminc »

Hi, Sorry I didn't explain it correctly.
What I was trying to do is to get the list of options that I can get from the variable, put into a dropdown box on my application window. And the user choice would be the one assigned back to the value field, so that it could be passed back to the proper parameter. So, I cannot put my list in the value field.
Is there another field like the From field of Range that I can use?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Access "Range" or "List" variables

Post by HighAley »

Hello.

It better to use our form or request from user variables to let users select values.
Could you send us your report template for analysis?

Thank you.
Post Reply