cancel
Showing results for 
Search instead for 
Did you mean: 

User Function Library Using MapPoint

Former Member
0 Kudos

Has anyone been able to generate a UFL using MapPoint?

I created a .DLL that gets point-to-point distances using MP. When I reference this dll in a console app, it works without a problem. When I use it in Crystal, I get an error.

If I remove the MapPoint code and just return a value, it works with Crystal, so I know the UFL is set up correctly.

I have narrowed down the problem to the following line of code:

MapPoint.Application objApp = new MapPoint.Application();

If I comment out this line and return a static value, it works without a problem.

If I leave this line in, I get an error in the formula that uses it.

I am passing in two addresses to the method and returning the Distance between the two.

Any help would be appreciated.

Ray

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member183750
Active Contributor
0 Kudos

What version of CR?

Do you get the error in the designer or when you run the report from an application?

Ludek