Using method in Stimulsoft
-
- Posts: 6
- Joined: Wed Jun 13, 2012 10:32 pm
- Location: PLC
Using method in Stimulsoft
In the report, I want to use a method to execute a case. For example, In this case I want to read the amount to letter. Please tell me, how can to do it with stimulsoft. Thankyou very much!
ex: image attach
ex: image attach
- Attachments
-
- 1940.Untitled.png (4.7 KiB) Viewed 2229 times
Using method in Stimulsoft
Hello,
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Thank you.
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Thank you.
-
- Posts: 6
- Joined: Wed Jun 13, 2012 10:32 pm
- Location: PLC
Using method in Stimulsoft
I want to read number to words. I usually code in the code behind but I did not report stimulsoft do so is
Using method in Stimulsoft
Hello,
You can use the following function:
Totals.ToWords()
Thank you.
You can use the following function:
Totals.ToWords()
Thank you.
-
- Posts: 6
- Joined: Wed Jun 13, 2012 10:32 pm
- Location: PLC
Using method in Stimulsoft
Thanks for answer me. but I want to ask is how to be able to use a funtion on the report?
Ex:
I have a number as Total = 100;
I wanted to use function read money: "one hundred dollars". How to do?
I used to extrareport as follows:
In code behind I write:
txtText.Text = ReadMoney (txtTotal.Text);
ReadMoney() I built a function in the library
Ex:
I have a number as Total = 100;
I wanted to use function read money: "one hundred dollars". How to do?
I used to extrareport as follows:
In code behind I write:
txtText.Text = ReadMoney (txtTotal.Text);
ReadMoney() I built a function in the library
Using method in Stimulsoft
Hello,
In this case, you can use the following function:
ToCurrencyWords()
Thank you.
In this case, you can use the following function:
ToCurrencyWords()
Thank you.
-
- Posts: 6
- Joined: Wed Jun 13, 2012 10:32 pm
- Location: PLC
Using method in Stimulsoft
Thankyou Aleksey reply for me!
But I want read money by Vietnamese. I have 1 function. Can i user it in stimulsoft report?
But I want read money by Vietnamese. I have 1 function. Can i user it in stimulsoft report?
Using method in Stimulsoft
Hello,
You can write your function on the Code tab in the begin of report, for example:
and then use this function in expressions, for example:
Thank you.
You can write your function on the Code tab in the begin of report, for example:
Code: Select all
Namespace Reports
Public Class Report
Inherits Stimulsoft.Report.StiReport
Public Function GetCurrencyString(ByVal numToConvert As integer) As String
'
'Place your code here
'
Return "new currency string"
End Function
Public Sub New()
MyBase.New
Me.InitializeComponent
.....
Code: Select all
{GetCurrencyString(yourDataSource.Field)}