Page 2 of 2
SumRunning problem
Posted: Tue Aug 04, 2009 12:31 pm
by Jan
Hello,
khongminh9 wrote:Thanks Edward, but hoow to access variable MyVariable from Code Behind?
When i access variable MyVariable is emtpy
Code i used:
rpt.Dictionary.Variables["MyVariable"].Value
This is example (attach). How to access value txtTotalPrice after calculate
You can use following code:
Thank you.
SumRunning problem
Posted: Tue Aug 04, 2009 12:32 pm
by Jan
Hello,
khongminh9 wrote:i want convert totalprice decimal to word same function ToCurrencyWords in Stimusoft report
but i need convert to Vietnam language.
Unfortunatelly report engine does not support Vietnam language.
Thank you.
SumRunning problem
Posted: Wed Aug 05, 2009 2:18 am
by AAA
Thanks Jan. I already accessed with syntax rpt["MyVariable"]
Now i want update variable MyVariable with new value after convert it to Words
Code: Select all
rpt.RegData("SqlDS_Contract", dt);
rpt.Render();
// After rpt.Render() i can access correct value of MyVariable with rpt["MyVariable"]
ReadNumber rn = new ReadNumber(Convert.ToInt64(rpt["MyVariable"]));
string strWord = rn.reader(); // Convert decimal to Words
((Stimulsoft.Report.Components.StiText)rpt.GetComponentByName("txtTotalPriceinWord")).Text.Value = strWord;
But new value cant update to txtTotalPriceinWord. Can I rerender txtTotalPriceinWord with new value?
I already try again rpt.Render(); but not affect
Sorry my bad english
SumRunning problem
Posted: Wed Aug 05, 2009 6:37 am
by Ivan
Hello,
khongminh9 wrote:... But new value cant update to txtTotalPriceinWord. Can I rerender txtTotalPriceinWord with new value?
I already try again rpt.Render(); but not affect
Please modify your code as following:
Code: Select all
rpt.RegData("SqlDS_Contract", dt);
rpt.Render();
// After rpt.Render() i can access correct value of MyVariable with rpt["MyVariable"]
ReadNumber rn = new ReadNumber(Convert.ToInt64(rpt["MyVariable"]));
string strWord = rn.reader(); // Convert decimal to Words
((Stimulsoft.Report.Components.StiText)rpt.GetComponentByName("txtTotalPriceinWord")).Text.Value = strWord;
rpt.Compile();
rpt.Render();
Thank you.
SumRunning problem
Posted: Thu Aug 06, 2009 2:25 am
by AAA
Thanks so much Ivan
My problem resolved
SumRunning problem
Posted: Fri Aug 07, 2009 2:33 am
by Ivan
Hello,
We are always glad to help you.
Let us know if you need any additional help.
Thank you.