Creating UFL using .NET
Is it possible to create a User Function(UFL) in .NET and then access that function in a blank Crystal Report at design time?
Ludek Uher replied
See if the following helps:
Error in file C:\DOCUME1\rolfd\LOKALA1\temp<guid>.rpt: The request could not be submitted for background processing
Formula functions defined in the UFL do not appear in the Crystal Reports designer
Crystal Reports UFLs created in Visual Studio .NET need to be in placed in the GAC and REGASM must also be used. Note that Regasm.exe command-line options are case insensitive.
Ensure Crystal Reports designer is not running
GAC the dll as follows:
a) Copy the UFL dll into The correct bin directory. For Crystal Reports 2008, this is c:\program files\business objects\business objects enterprise\win32_x86
b) At the .NET command prompt type; c:\program files\business objects\business objects enterprise\win32_x86 gacutil -i <name of your UFL>
This should result in the message; "Assembly successfully added to the cache."
Run REGASM from the command prompt:
Type c:\program files\business objects\business objects enterprise\win32_x86 regasm <name of your UFL>
For more details, see the Developer Library, BusinessObjects Enterprise XI 3.1 and Crystal Reports 2008 Developer Help: