Page 1 of 1

How can I get Text1.Text?

Posted: Tue Feb 09, 2010 3:23 am
by RickyHuang
i have 2 Text

Text1.Text is "aa"

I want Text3.Text = Text1.Text

and i write this code in Text3.Expression
{Text1.Text}

but there is nothing in preview

how can i to do it?

How can I get Text1.Text?

Posted: Tue Feb 09, 2010 8:59 am
by Andrew
Hello,

Unfortunately, you cannot refer to the field of the text component
Please repeat this expression once again in another textbox

Thank you.

How can I get Text1.Text?

Posted: Tue Feb 09, 2010 7:10 pm
by RickyHuang
but I can get othe properties except the text...

I had do it in another Text,it's the same

can you give me a *.mrt to demo for this ?

Thanks

How can I get Text1.Text?

Posted: Tue Feb 09, 2010 7:42 pm
by Edward
Hi

The following options are available here:

1) In the BeforePrintEvent of the DataBand with your textboxes you assign values as follows:

Text1.TextValue = "aaa";
Text2.TextValue = "bbb";

2) You use variables in the Dictionary and assign values for them first and expression will be as follows:

{MyVariable}

3) You add your expressions into the Text property as follows:

{DataBand1.DataColumn1}

{Totals.Sum(DataBand1,DataBand1.DataColumn)}

Also the following link could be interesting for you too:
http://forum.stimulsoft.com/Default.aspx?g=posts&m=9334

Thank you.

How can I get Text1.Text?

Posted: Wed Feb 10, 2010 12:23 am
by RickyHuang
thanks

When I use a click event
Text1.TextValue = "aaa";
or
Text1.Text = "aaa";
or
Text1.Text.Value = "aaa";

I preview this report and click this area

Text1 is not change anything...

How can I get Text1.Text?

Posted: Wed Feb 10, 2010 3:07 am
by Jan
Hello,

You can't change text value of text components in this way because Text1 is component in report template. Is result report you will see rendered copy of this components. Please check sample report Dialogs.Report Arguments from Demo application.

Thank you.

How can I get Text1.Text?

Posted: Wed Feb 10, 2010 4:11 am
by RickyHuang
Thank you

Where can I get the sample report 『Dialogs.Report Arguments』

The version we use currently is the demo version,we're thinking about buying new report package

we're trying to transfer the crystal report to yours......

How can I get Text1.Text?

Posted: Wed Feb 10, 2010 12:14 pm
by Jan
Hello,

If you use Reports.Net you can find Demo.exe in Start Windows menu.

Thank you.