To create a UFL class library

In this section, you create the UFL Class library and configure it to be registered for COM Interop.

  1. Launch Visual Studio.

  2. From the File menu, select New, and then click Project.

  3. In the New Project dialog box, select a language folder for C# or Visual Basic from the Project Types list.

  4. From the Templates list, click Class Library.

  5. In the Name field, enter one of the following:

    • CRUFL_VB_ExchangeRate (Visual Basic)
    • CRUFL_CS_ExchangeRate (C#)
> [!NOTE]
> <P>All User Function Libraries must be prefixed with CRUFL to be recognized by the embedded Crystal Reports Designer.</P>
  1. Click OK.

  2. In Solution Explorer, right-click the project name that is in bold type, and then click Properties.

  3. Click the Build/Compile tab.

  4. If you are using Visual Basic, on the OptionStrict list, click On.

  5. Scroll to the bottom of the Build/Compile window and select Register for COM Interop.

> [!NOTE]
> <P>"Register for COM Interop" causes the assembly to be automatically registered by the regasm.exe utility, when the project is compiled. So, you do not need to run regasm.exe manually from the command prompt.</P>
  1. From the File menu, click Save All.

  2. Close the Compile/Build window.

You are now ready to create the interface.