cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to view newly created my UFL function sample.rpt file in the crystal report designer 2020

319
  • Created simple COM component in C#.NET and output is UFLDotNetSample.dll
  • Pasted the UFLDotNetSample.dll Into below path and register the dll by “regasm.exe”.

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64

Install it into GAC as well.

But I’m not able view/see my function in the crystal report designer 2020(30 -days evaluation version which I'm using currently - [v14.3.0.3625]).

Can you please help to how add my UFL function successfully into CR designer, it would be thankful if you could share the Sample UFL project and how to use it in CR designer and .RPT file.

Thank you for your support. crystalreportdesigner-v14-ufl.png

C# .NET UFL
namespace UFLDotNetSample
{
    [Guid("BA988C53-D048-433e-809A-0719E8696D5E")]
    public interface SimpleStr
    {
        [DispId(1)]
        int StringLength(string name);
    }
    [Guid("2D940DDB-BB03-4a0f-A549-8550122D366B"), ClassInterface(ClassInterfaceType.None)]
public class ClassTest : SimpleStr
    {
        public ClassTest()
        {
        }
        public int StringLength(string name)
        {
            return name.Length;
        }  
    }
}

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hello,

Use Google and search for this KBA - 1525014 - Sample C# .NET UFL and Localization Formula function

Or try this link: https://apps.support.sap.com/sap/support/knowledge/en/1525014

Note the info to tell CRD to use the same framework your UFL is using.

CR 2020 is a 64bit application so the UFL needs to be built by setting the project to x64 and not AnyCPU.

Don

Answers (0)