Skip to Content
0
Former Member
Feb 08, 2011 at 10:41 AM

How to get an UFL into Crystal Reports 2008

45 Views

Hello,

I created an UFL in Visual Basic, built .dll, registered it successfuly with RegAsm and added to GAC. Yet I still can't see the functions in Additional Functions.

DLL source code:

<Runtime.InteropServices.ComVisible(True)>

Public Class Class1

Public Function UFLTest1() As String

UFLTest1 = "Hello"

End Function

Public Function UFLTest2(ByVal sVal As String) As String

UFLTest2 = "Hello, " & sVal

End Function

End Class

In VB project properties, Make assembly COM-visible is checked. .NET framework 3.5 has been used. I copied the .dll to directory c:\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\ and registered by RegAsm from there (and added to GAC).

Any idea what can be wrong ?

Thanks,

Jakub