Page 1 of 1

If Possible of Write User defined function?

Posted: Wed Aug 23, 2006 2:16 am
by MARIMUTHU K
Hi hi hi

If Possible of Write User defined function?

or What is other way of write user defined Function?

I want add Lines of coding in function.

Please provide solution.

Thanks



Regards,
KMarimuthu.

If Possible of Write User defined function?

Posted: Wed Aug 23, 2006 4:56 am
by Vital

In first you can place your function in report code:

Code: Select all

namespace Reports
{
    
    public class Report : Stimulsoft.Report.StiReport
	{
		
		private string MyFunction()
		{
			return "123";
		}
        
        public Report()
        {
            this.InitializeComponent();
        }
In second you can create class with static methods. After then you can use it in reports:

How_to_Add_My_Function