This topic explains the steps  to create and use a custom function in Crystal Report. If you want better understanding of Crystal Report, we recommend you to try and you can start from our lowest Standard Plan @4.99/month to host your Crystal Report site.

A custom function can be used when there is a need to run the same code/logic in multiple places of a report/reports. To create and use a custom function in a Crystal Report, follow these steps.


1. Open Crystal Reports and open the Formula Workshop.

2. Right click on 'Report Custom Functions' and click on New...

3. Type in the name of the formula and click on the 'Use Editor' button.

4. Type in the function. The function in this picture has two parameters. It adds two number together and returns the result.

5. When done, click Save and Close. You have now created a custom function.

6. You can now call the custom function from within a formula. Remember to enter any parameters that need to be sent to the custom function. If the custom function shown, the value returned from the custom function is saved in a variable. The value in that variable is then returned from the formula.

Top Reasons to trust your Crystal Report website to

What we think makes so compelling is how deeply integrated all the pieces are. We integrate and centralize everything--from the systems to the control panel software to the process of buying a domain name. For us, that means we can innovate literally everywhere. We've put the guys who develop the software and the admins who watch over the server right next to the 24-hour Fanatical Support team, so we all learn from each other:

- 24/7-based Support - We never fall asleep and we run a service that is operating 24/7 a year. Even everyone is on holiday during Easter or Christmas/New Year, we are always behind our desk serving our customers
- Excellent Uptime Rate - Our key strength in delivering the service to you is to maintain our server uptime rate. We never ever happy to see your site goes down and we truly understand that it will hurt your onlines business. If your service is down, it will certainly become our pain and we will certainly look for the right pill to kill the pain ASAP
- High Performance and Reliable Server - We never ever overload our server with tons of clients. We always load balance our server to make sure we can deliver an excellent service, coupling with the high performance and reliable server
- Experts in Crystal Report Hosting - Given the scale of our environment, we have recruited and developed some of the best talent in the hosting technology that you are using. Our team is strong because of the experience and talents of the individuals who make up ASPHostCentral
- Daily Backup Service - We realise that your website is very important to your business and hence, we never ever forget to create a daily backup. Your database and website are backup every night into a permanent remote tape drive to ensure that they are always safe and secure. The backup is always ready and available anytime you need it
- Easy Site Administration - With our powerful control panel, you can always administer most of your site features easily without even needing to contact for our Support Team. Additionally, you can also install more than 100 FREE applications directly via our Control Panel in 1 minute!

Happy hosting!