Skip to Content
avatar image
Former Member

How to add C# UFL Library into crystal report function for Arabic Language?

Hi Experts,

I have designed invoice report and displayed amount in words as Arabic words working fine. currently im doing from vb page. below for your reference, i've used two functions already added in app_code folder. Arabic words passed from VB page to report through parameter and displaying. It's working fine.

Now I need this Arabic words function from report. because i don't want to pass Inv_amount as parameter. I wants to print from Function. For that I've created UFL .dll.

Now i wants to add the above .dll to report function. Please suggest how to add the created C# .DLL to crystal report.

Thanks in adavnce,

Mani.

sar.jpg (29.0 kB)
vb.jpg (35.2 kB)
arabic-dll.jpg (28.6 kB)
ufl-function.jpg (44.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Feb 21 at 06:39 PM

    Hello,

    Use Google and search for this KBA:

    1525014 - Sample C# .NET UFL and Localization Formula function

    It will explain how to enable UFL's in CR Designer.

    Don

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Don Williams

      Dear Don,

      Thanks, to register it with VS .NET,

      while clicking from VS 2010 I came to this page,

      do i need to register here for UFL adding in VS 2010 designer? which registration type i need to choose?

      Please suggest this is my doubt.

      Thanks

      Mani.

      register.jpg (171.8 kB)
      cr-register.jpg (149.4 kB)
  • Feb 23 at 09:19 PM

    Oops, sorry, there is a readme file in that project that explains how to register the UFL into the GAC, not VS.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Don,

      Thanks.I have added assembly in GAC and registered UFL in .Net.

      Im using Visual Studio 2010. Still not getting. kindly see the attached files. what i did wrong? Please advise...

      Thanks in adavnce.

      Mani.

      framwork-path.jpg (80.3 kB)
      crufl.jpg (136.3 kB)
  • Feb 26 at 05:37 PM

    CR Designer is a 32 bit application, you need to compile it in x86 mode also.

    Don

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Don,

      tried with x86 build mode too.... but no luck.

      resisted in RegAsm with .Net Framework also.

      Please what's wrong here?

      Thanks

      Manikandan.

      x86-ufl.jpg (26.9 kB)
      x86-ufl.jpg (26.9 kB)
  • Feb 28 at 05:39 PM

    Copy the DLL into the x86 and x64 folder in CR for VS as well as CR folder:

    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\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64

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

    You then need to create the crw32.exe.config file and set the Framework to 4.0 or what ever version of the framework your UFL is running under.

    It's all mention inf the KBA...

    Don

    Add comment
    10|10000 characters needed characters exceeded