Referencing a text box in an expression

Stimulsoft Reports.NET discussion
Post Reply
StephBell-Mercer
Posts: 7
Joined: Wed Jan 13, 2010 1:40 pm
Location: Louisville, KY

Referencing a text box in an expression

Post by StephBell-Mercer »

I have used both the Win32 and Web version of Stimulsoft and have found that one critical functionality that works within the Win32 version does not work in the Web version. The expression below was used to calculate a number on the report by dividing a data member by the value of a text box on the report.

{Div(Data.PRICEDOBJECT_AVG_BASE_PAY_VALU,System.Convert.ToDecimal(Text50.Text))*100}

In the web version, no data is returned in the text box containing this expression. Is there any resolution for this issue?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Referencing a text box in an expression

Post by Edward »

Hi

The report engine is the same for Web and WindowsForms versions of our products.

But you need to change the way of solving of such a task. If you reference other components in the rendered report, then rendered report could contain more than one such component with the same Name. The easiest example is the Text1 inside of DataBand1. The result of rendering will be several Text1 components in the rendered report. One component for each rendered DataBand1.

And an optimal solution is using of the same expressions in each component which must contain that expression. You will not face downgrade in performance even with complex totals.

Also you could count totals you need in the variable in the Dictionary and use that variable in all parts of the report.

Thank you.
Post Reply