cancel
Showing results for 
Search instead for 
Did you mean: 

How to get an UFL into Crystal Reports 2008

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ok seems the problem is the whole Visual Basic .NET custom function library (u2lcom.dll) is missing in the list of custom functions, which is being discussed in many threads with no helpful result. Any hint on that would be helpful.

Answers (1)

Answers (1)

Former Member
0 Kudos

Ok, solved it.

If anyone fights with writing UFL, check [Microsoft MSDN|http://msdn.microsoft.com/en-us/library/ms227603%28v=VS.90%29.aspx] and follow it step by step (and I mean STEP BY STEP, any single checkbox missed and it's not gonna work).