Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

DateTime Parameters on .NET UFL's

$
0
0

Environment:

 

  • Crystal Reports 2011
  • Visual Studio 2010 / .NET 4.0

 

Problem:

 

I'm trying to create a C# UFL that takes a DateTime value from the report as a parameter and returns a string.  However, when I create the UFL using the .NET "System.DateTime" type as a parameter, the resulting UFL that becomes available in Crystal will only accept a value of type "Date".  I haven't found a way to create a C# UFL that actually takes a DateTime value in Crystal Reports.

 

Anyone know how to create a .NET UFL that actually accepts a DateTime value from Crystal?  Or a way to pass in a Crystal "Time" value into a C# UFL?  Either would work.

 

Sample UFL Code:

UFL Code.png


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>