PreRelease 2010.02.22 R2005 Variable problem

Stimulsoft Reports.WEB discussion
Post Reply
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

PreRelease 2010.02.22 R2005 Variable problem

Post by JockeD »

Hello,

I just tried the lates prerelease version 2010.02.22 R2005.
However I found a problem when adding a variable from code.

If I add a variable from code it look's strange in the web designer and I get an error if I try to preview.

Code: Select all


myVariable = New Dictionary.StiVariable
myVariable.Category = "Category"
myVariable.Name = "VariableName"
myVariable.Alias = "VariableAlias"
myVariable.Type = GetType(String)
myVariable.Value = "Test String"
myReport.Dictionary.Variables.Add(myVariable)

Please see attached image from the designer

Thank's Joakim
Attachments
342.EditVariable.png
342.EditVariable.png (6.18 KiB) Viewed 3363 times
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

PreRelease 2010.02.22 R2005 Variable problem

Post by Vladimir »

Hello,

Error is fixed, patch will be available in next build.

Thank you.
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

PreRelease 2010.02.22 R2005 Variable problem

Post by JockeD »

Thank you,

Do you know when the next prerelease will be available?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

PreRelease 2010.02.22 R2005 Variable problem

Post by Vladimir »

The next prerelease build will be available on March, 1

Thank you.
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

PreRelease 2010.02.22 R2005 Variable problem

Post by JockeD »

Hello,

I downloaded the latest version.
But I'm afraid there is another problem.

If I try to create a variable in a category from code I get an error 'The Type Report already contains a definition for variable'

Regards Joakim
Attachments
358.VariableCategory.png
358.VariableCategory.png (43.04 KiB) Viewed 3334 times
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

PreRelease 2010.02.22 R2005 Variable problem

Post by Andrew »

Dear Joakim,

Please show us a code how do you create variables.

Thank you.
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

PreRelease 2010.02.22 R2005 Variable problem

Post by JockeD »

Hello,

I'm not in front of my dev machine right now but I belive the problem is adding a category from code.
I just use

Code: Select all

myReport.Dictionary.Variables.Add("Category")
The variable is declared as above.
If you need more info please let me know.

Regards Joakim
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

PreRelease 2010.02.22 R2005 Variable problem

Post by Jan »

Hello Joakim,

Thank you for your bug report. Patch will be available in build from 9 March.

Thank you.
Post Reply