How can I get Text1.Text?

Stimulsoft Reports.NET discussion
Post Reply
RickyHuang
Posts: 68
Joined: Tue Feb 09, 2010 3:16 am
Location: Taiwan

How can I get Text1.Text?

Post 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?
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

How can I get Text1.Text?

Post 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.
RickyHuang
Posts: 68
Joined: Tue Feb 09, 2010 3:16 am
Location: Taiwan

How can I get Text1.Text?

Post 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
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How can I get Text1.Text?

Post 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.
RickyHuang
Posts: 68
Joined: Tue Feb 09, 2010 3:16 am
Location: Taiwan

How can I get Text1.Text?

Post 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...
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

How can I get Text1.Text?

Post 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.
RickyHuang
Posts: 68
Joined: Tue Feb 09, 2010 3:16 am
Location: Taiwan

How can I get Text1.Text?

Post 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......
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

How can I get Text1.Text?

Post by Jan »

Hello,

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

Thank you.
Post Reply