Creating your own function

Stimulsoft Reports.NET discussion
Post Reply
ptabkra
Posts: 27
Joined: Tue Oct 16, 2007 10:33 pm

Creating your own function

Post 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! :)
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Creating your own function

Post 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.
Post Reply