问题
While trying to display a GUID
column in a report ..its displayed as #error
..
=CStr(Fields!number.Value).ToString
I tried the above code in the properties of the column..it doesn't work..
Please advise
回答1:
=CType(Fields!number.Value, GUID).ToString
回答2:
If it is a GUID, just display it without any processing, like other data types.
In case you want to convert it for other purposes, just use ToString, for example:
=IIf(Fields!number.Value.ToString=Fields!ID.Value.ToString, "true", "false")
来源:https://stackoverflow.com/questions/12079064/convert-guid-to-string-in-sql-server-reporting-services