How to add C# reference to report script
Hi, we have a report which needs to use System.Web.Script.Serialization library(of C#). In the script I have "using System.Web.Script.Serialization" at the top but it failed to compile gave the following error message:
Report Script Compile Error on Line 3 Error = The type or namespace name "Script" does not exist in the namespace 'System.Web' (are you missing an assembly reference?).
My question is how to add the reference in Report? Thanks
-
Just want to add, the reason to ask this is I need JavaScriptSerializer class to deserialize the JSON objects. thanks.
0 -
I'm afraid that Report Designer still uses .NET 2.0, and this library is not available for use. If you wish to serialize JSON properly in a report's code-behind page you will have to use a third party library, such as JSON.NET (http://json.codeplex.com/) .
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer