Page 1 of 1
add function
Posted: Fri Feb 01, 2013 8:47 pm
by ytheaudin
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
Re: add function
Posted: Mon Feb 04, 2013 6:22 am
by HighAley
Hello.
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
As a way you could create your function in the Code tab before the 'StiReport Designer generated code' region.
Thank you.
Re: add function
Posted: Tue Feb 05, 2013 11:55 am
by ytheaudin
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
Re: add function
Posted: Wed Feb 06, 2013 10:36 am
by Alex K.