on 10-24-2022 10:24 PM
Setup:
Repro Steps:
Additional Information
Please let me know if anything is unclear or I can provide any additional information?
Set the project to X64, CR runtime is for your project platform and the OS.
Search for this KBA - 1525014 - Sample C# .NET UFL and Localization Formula function
Resolution
Also Note:
To change the Class Name so the function name (DotNetSampleClass) is not listed in Crystal Report Designer do the following:
Now you will see the function named: Fnt StringLength.
To be able to use the UFL in CR Designer you need to tell the Designer to use the same framework by doing the folowing:
To see this new UFL in Crystal report Designer do the following:
For 32 bit App:
64 bit App:
To be able to set Crystal Report Designer to use the same Framework you created the UFL in you must tell CR Designer whcih one to use by doing the following:
Create a file called:
crw32.exe.config
And paste this into it:
<?xml version ="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true" >
<supportedRuntime version="v4.0" />
</startup>
</configuration>
Change the "supportedRuntime version" to what ever framework you are compiling your UFL in.
Save this file into the same location as crw32.exe:
For CR 2011/2013:
C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86
And for CR 2008:
C:\Program Files (x86)\Business Objects\BusinessObjects Enterprise 12.0\win32_x86
Now you should see your functions in the list in CR Designer.
For CR 2020 you need a 64 bit version of the UFL:
Create a file called:
crw64.exe.config
And paste this into it:
<?xml version ="1.0"?>
<configuration>
<supportedRuntime version="v4.0" />
</startup>
</configuration>
Change the "supportedRuntime version" to what ever framework you are compiling your UFL in.
Save this file into the same location as crw64.exe:
For CR 2020:
C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Don,
The issue on my end was that I was running regasm.exe from this 32bit framework location:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe
rather than from the 64bit framework:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe
Thank you for the quick reply!
Jason
User | Count |
---|---|
83 | |
10 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.