Page 1 of 1

Creating your own function

Posted: Tue Feb 19, 2008 12:57 am
by ptabkra
Hi All,
I am thinking of creating my own-defined function at the Stimulsoft designer code where I can re-use it on calculations.
As a simple start, I wanted to calculate the sum of 2 values.
Say, a get_sum function with paramaters value1, value2 so..

it would look something like(?):

public decimal get_sum(decimal value1, decimal value2){
return (value1 + value2);
}

my question were: i'll be using c++ codes, where in the code area am i going to insert my get_sum function?
what is the syntax then and what tips can anyone share on creating functions?

Thanks in advance! :)

Creating your own function

Posted: Tue Feb 19, 2008 1:05 am
by Edward
If it is possible, then a good idea to place your function in separate dll, declare it as static and launch it from any place of the report.

Here is the steps how to do it:

http://www.stimulsoft.com/livedemos/Rep ... ction.html

Thank you.