How i can get the value from text
How i can get the value from text
Hello,
I need to make a calculation based on the result of a sum. I created a Text called Text1, then put in the detail band to make the sum of a group {Sum (databand1, myreport.name)}. I created a variable of type Percent and Add a line in after print event, put the variable to receive the value that was printed in Text1. It was so in print after: myVariable = Text1.Text
This not work. How i get a value from Text ?
Rgds,
I need to make a calculation based on the result of a sum. I created a Text called Text1, then put in the detail band to make the sum of a group {Sum (databand1, myreport.name)}. I created a variable of type Percent and Add a line in after print event, put the variable to receive the value that was printed in Text1. It was so in print after: myVariable = Text1.Text
This not work. How i get a value from Text ?
Rgds,
Re: How i can get the value from text
Hello.
It's not so easy to get data from text components. There are component on report template and on rendered report. Usually there are many instances of one component on the rendered report.
It's better to use the same expression. Or use variables to save data there.
Thank you.
It's not so easy to get data from text components. There are component on report template and on rendered report. Usually there are many instances of one component on the rendered report.
It's better to use the same expression. Or use variables to save data there.
Thank you.
Re: How i can get the value from text
Please, show me an exemple.
Re: How i can get the value from text
I have tried to put the same expression and did not work in the example below.
myvariable = {sum(databand1, myreport.name)}
myvariable = {sum(databand1, myreport.name)}
Re: How i can get the value from text
Hello,
Please try to use the following expression in the Text expression:
or in the BeforePrint event:
Thank you.
Please try to use the following expression in the Text expression:
Code: Select all
{Variable1 = Totals.Sum(Products, Products.UnitPrice)}
Code: Select all
Variable1 = Totals.Sum(Products, Products.UnitPrice);
Re: How i can get the value from text
My text no use a field database, use a expression (sum....)
Re: How i can get the value from text
Hello.
Sorry, maybe we don't understand your issue right.
Could you describe it more detailed?
Thank you.
Sorry, maybe we don't understand your issue right.
Could you describe it more detailed?
Thank you.