This is a migrated thread and some comments may be shown as answers.

Custom Format code behind 2013 Q1

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 15 Nov 2013, 11:57 AM
I have done a custom format function in code behind


        public static string FormatYesNo(Int16 skill)
        {
            if (skill ==0)
                return "No";
            else
                return "Yes";
        }

But when i render the report i get this error shown in screen shot

1 Answer, 1 is accepted

Sort by
0
Squall
Top achievements
Rank 1
answered on 15 Nov 2013, 02:01 PM
The reporting engine can't find the user function because it works with bigger integers. Try to change the user function argument to Int64.

or just use this expression:
=IIF(skill = 0, "No", "Yes")

SN
Tags
General Discussions
Asked by
Dave
Top achievements
Rank 1
Answers by
Squall
Top achievements
Rank 1
Share this question
or