Many of us want custom function inside the crystal report. Below article tell you how to create a custom function for crystal report

The In Build functions available in the Crystal report are limited and we may not be using all the available function and the functionality we need to achieve may not be available.
To overcome this issue we can write our own function and embedded in to the crystal report.
We can create ActiveX component in VB and register it in the machine in which crystal reports are running. Or we can create a COM interop Dll using .NET.
The following steps shows how to create a Crystal report embedded COM interop DLL
If the DLL is prefixed with 'CRUFL' then it automatically embedded in to the crystal report as a function
Create a Class library using C# or VB.NET with the Name prefixed as 'CRUFL'
Write all the necessary function and before compling it
In Solution Explorer, right-click the project name and then click Properties and Click the Build/Compile tab. Then Scroll to the bottom of the Build/Compile window and select Register for COM Interop check box option. Now save the solution and Close the Compile/Build window.
Now the created function will be available in the crystal report.



Guest Author: Tribhuwan Kushwaha07 Apr 2013

how to make available the created function in crystal Library?
I have created project Library with prefix CRUEL and rest all But even the function is not seen in crystal report

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: