Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services 2012年ssrs动态报告_Reporting Services_Sql Server 2008 R2 - Fatal编程技术网

Reporting services 2012年ssrs动态报告

Reporting services 2012年ssrs动态报告,reporting-services,sql-server-2008-r2,Reporting Services,Sql Server 2008 R2,**使用报表类动态报告 Microsoft.ReportingServices.ReportRendering命名空间 参考Microsoft.ReportingServices.ProcessingCore.dll(最新版本2012-06)** report类包含所有reportViewer元素 要将RDLC或RDL文件与报表类关联,我正在尝试序列化该类 此选项不可用 XmlSerializer serializer = new XmlSerializer(typeof(Report)); F

**使用报表类动态报告

Microsoft.ReportingServices.ReportRendering命名空间 参考Microsoft.ReportingServices.ProcessingCore.dll(最新版本2012-06)**

report类包含所有reportViewer元素
要将RDLC或RDL文件与报表类关联,我正在尝试序列化该类 此选项不可用

XmlSerializer serializer = new XmlSerializer(typeof(Report));
FileStream fs = new FileStream(report_path, FileMode.Open);
ms = new MemoryStream();
fs.Position = 0;
ms.SetLength(fs.Length);
fs.Read(ms.GetBuffer(), 0, (int)fs.Length);
ms.Position = 0;
report = (Report)serializer.Deserialize(ms);
** 正在尝试序列化该类,但出现错误 检查bool=typeof(report).是否可序列化>>错误

那么,也许还有其他解决方案来处理Report类

**对于动态报告>>
我正在使用ReportDefinition xsd并使用xsd.exe中的ReportDefinition类

Dserialize选项也可以在运行时更改报告定义


新的报表类将替换此选项

很难理解你在问什么,你能编辑你的问题并澄清吗?我编辑我的问题,希望你能理解。你能指定你正在使用的.net版本吗?是4.0吗?4.5?