I'm new to crystal reports and .net technologies. I have recently started working on them and I want to know whether the crystal report expressions can be converted to an equivalent vb code, so I can use them in SSRS reports.
Also the below crystal report expressions by itself looks like sort of vb code(someone correct me if I am wrong).
Crystal report formula:
local StringVar x :="";
if not isnull({Availability.Address}) and trim {Availability.Address}) <> ""
and {Availability.Address} <> {Availability.Building}
then x := x + {Availability.Address} + chr(10);
if not isnull({Availability.Park}) and trim({Availability.Park}) <> ""
then x := x + {Availability.Park} + chr(10);
if not isnull({Availability.City}) and trim({Availability.City})
<> "" then if not isnull({Availability.State})
then x := x + {Availability.City} + ", "
else x := x + {Availability.City} + " ";
if not isnull({Availability.State}) and trim({Availability.State})
<> "" then x := x + {Availability.State} + " ";
if not isnull({Availability.Zip}) and trim({Availability.Zip})
<> "" then x := x + {Availability.Zip} + " ";
x;
VB Code:
Public Function Test(ByVal profit As String) As String
{
//crystal report expressions as vb code?
}
Now can I convert this crystal formula into vb code?
Note: Availability in the formula is the stored procedure name and followed by a field name
.