Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling .NET codes from Crystal report? 1

Status
Not open for further replies.

maulae

IS-IT--Management
Feb 7, 2006
34
US
In my database some of the fields store data in array sting values with a field separator comma i.e for name of a item is stored in field Itemname as ‘Milk,sugar,Tea’ and their respective prices are stored in an other field ItemPrice as ‘3.00, 1.50, 2.50’.
Now I have written the code in crystal with array variable to display each Item name and price on independent line in the report, these reports are published on web through .Net, I am dealing with crystal report only and there is an other .NET developer who also writes code to evaluate these string array field, now my question is - Is there a way for calling .Net code from Crystal Report?

Because in the future if field separator is changed from comma to semicolon then I can call that code in my report.
Thanks
 
You can't directly call .NET code, but you might be able to create a UFL (universal(?) function library) that all of your reports would call to do this transformation. Then, all you would have to do is change and recompile the UFL to change the way this is processed in all of your reports.

I've never created a UFL, but there is documentation available for them.

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top