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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal XI - Problem seeing UFL dll

Status
Not open for further replies.

BernieBeattie

Programmer
Nov 29, 2002
22
0
0
GB
We are trying to create a User Function Library (UFL) for CrystalXI in Visual Foxpro 8, as we want to provide our users with a number of standard built-in functions. However, we are having trouble doing this and wondered if you could give us some pointers?

We have tried the following test:-

1. Created a vfp project called CRUFLADV with one program file with the following code:

Define Class LMFUNC As Custom OlePublic

FUNCTION LMTEXT AS STRING

RETURN 'TEST'

Endfunc

Enddefine

2. Built the project as a dll. Checked in the registry to see that it was registered. Also checked that we could use the dll within VFP.

3. Looked in Crystal in the Formula Editor under additional functions to see if the function was listed - it wasn't.

Any ideas? Is there something more we need to do or are we looking in the wrong place in Crystal? Any help would be greatly appreciated.

Thanks in advance,
Bernie
 
The UFL has to be in the correct folder to appear on the function list.

In Cr 8.5 it is the Windows\Crystal folder, while later versions were in c:\Program Files\Common Files\Crystal Decisions\xxxx\bin. (where xxx is the internal version number)

I think CR Xi is in c:\Program Files\Common Files\Business Objects\3.0\bin.


Editor and Publisher of Crystal Clear
 
We have actually put it in this directory, the same directory that contains all the other UFLs that appear in the list. Our one just doesn't appear. It's registered fine. Not sure what's going on unless Crystal simply doesn't recognise VFP dlls? Has anyone actually got a VFP one that works?

Regards,

Bernie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top