Skip to Content
author's profile photo Former Member
Former Member

User Function Library Using MapPoint

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.


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 11, 2010 at 04:07 PM

    What version of CR?

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


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.