Create a VB ActiveX dll project.
Start the project name with CRUFL then something to identify it eg CRUFLmyUfl
Add a class module eg myClass
Within the class add function myFunction
Within that function have your VB code as normal.
Compile this as an ActiveX dll in your Windows\Crystal folder.
This give you a UFL call myUflmyClassmyFunction
For example, this gives you a message box:
Public Function simpleMessageBox(message As String) As String
On Error Resume Next
MsgBox (message)
simpleMessageBox = message
End Function Andrew Baines
Chase International
You need to register your .dll with regsvr32.exe. Also it is vital that your VB Project name starts with "CRUFL".
George Peck's book "Crystal Rerports 8.5 - the Complete Reference" has a great chapter on this, as well as a CD with sample VB code, and touches on doing this from other languages such as Delhpi and C++. About $30 online and a bargain.
Software Training and Support for Macola, Crystal Reports and Goldmine
251-621-8972
dgilsdorf@mchsi.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.