Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UFL

Status
Not open for further replies.

alexbaker

Programmer
Aug 16, 2002
3
GB
Can any one provide me with a guide to creating a custom dll for inclusion in my crystal 8.5 report.
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top