Hi
I would like to add a function to the diction that user can simply use
whether you have an example I have already watched the howto but too complicated for the end user
best regards
add function
Re: add function
Hello.
Thank you.
As a way you could create your function in the Code tab before the 'StiReport Designer generated code' region.ytheaudin wrote:I would like to add a function to the diction that user can simply use
whether you have an example I have already watched the howto but too complicated for the end user
Thank you.
Re: add function
Hi
I tried this code
Test 1) Stimulsoft.Report.Dictionary.StiFunctions.AddFunction("ShowMessage", "dudu", "J+X", System.Type.GetType("String"), System.Type.GetType("String"), "test")
Test 2) Stimulsoft.Report.Dictionary.StiFunctions.AddFunction("dudu", "dudu", "J+X", System.Type.GetType("String"), System.Type.GetType("String"), "test")
StiReport1.Design()
And when I click on the design function object not defined error
Public Function dudu(ByVal test As String) As String
MsgBox(test)
Return test
End Function
End Class
Namespace MyFunction
Public Class Main
Public Function ShowMessage(ByVal text As String)
Return "dudu"
End Function
End Class
End Namespace
Have you an example?
Thanks
I tried this code
Test 1) Stimulsoft.Report.Dictionary.StiFunctions.AddFunction("ShowMessage", "dudu", "J+X", System.Type.GetType("String"), System.Type.GetType("String"), "test")
Test 2) Stimulsoft.Report.Dictionary.StiFunctions.AddFunction("dudu", "dudu", "J+X", System.Type.GetType("String"), System.Type.GetType("String"), "test")
StiReport1.Design()
And when I click on the design function object not defined error
Public Function dudu(ByVal test As String) As String
MsgBox(test)
Return test
End Function
End Class
Namespace MyFunction
Public Class Main
Public Function ShowMessage(ByVal text As String)
Return "dudu"
End Function
End Class
End Namespace
Have you an example?
Thanks
Re: add function
Hello,
Please see the sample video:
http://www.stimulsoft.com/en/videos?tag ... ge=8&id=97
Thank you.
Please see the sample video:
http://www.stimulsoft.com/en/videos?tag ... ge=8&id=97
Thank you.