Custom .ToString() Formats in .rdlc Reports
问题 I have a custom business object which overloads the .ToString() function. It also implements IFormattable.ToString, so I can define my own custom formats. This approach seems to work everywhere in my app, except .rdlc reports. For example, I have a text field on a report with the following expression: =Fields!MyField.Value.ToString("lr") "lr" is a custom format I have created. When running the report I always get #Error as the output. I've placed breakpoints in my .ToString function and