Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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?

Thanks

Former Member
replied

Hi:

See if the following helps:

Symptom

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

Cause

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.

Resolution

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:

Ludek

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question