八百里加急:如何动态设置RDL报表的数据源?

gui0605 2007-05-28 01:57:25
如题,在用reporting servers设计报表时我的数据源是一个DataSet,如何在代码里边动态设置报表的数据源???希望熟悉的能给个例子看看
...全文
357 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
Hixe 2008-05-21
  • 打赏
  • 举报
回复
你是怎么解决的。也发个邮件我看看。刚好我也用到这里不会做了。谢谢。 70542056@qq.com
gui0605 2007-05-28
  • 打赏
  • 举报
回复
谢谢几位,问题已解决
不过在部署的时候出了问题,错误信息如下:

标题: Microsoft 报表设计器
------------------------------

无法与报表服务器 http://localhost/ReportServer 建立连接。

------------------------------
其他信息:

客户端发现响应内容类型为“text/html; charset=utf-8”,但应为“text/xml”。
请求失败,错误信息为:
--
<html>
<head>
<title>配置错误</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>“/ReportServer”应用程序中的服务器错误。<hr width=100% size=1 color=silver></H1>

<h2> <i>配置错误</i> </h2></span>

<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

<b> 说明: </b>在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。
<br><br>

<b> 分析器错误信息: </b>未能加载文件或程序集“System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件。 (E:\SmsShtx2005\SmsShtx\web.config line 114)<br><br>

<b>源错误:</b> <br><br>

<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>

行 112:
行 113: <httpModules>
<font color=red>行 114: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</font>行 115: </httpModules>
行 116: <!-- 自定义错误信息</pre></code>

</td>
</tr>
</table>

<br>

<b> 源文件: </b> E:\SmsShtx2005\SmsShtx\web.config<b>    行: </b> 114
<br><br>

<hr width=100% size=1 color=silver>

<b>版本信息:</b> Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.210

</font>

</body>
</html>
<!--
[ConfigurationErrorsException]: 未能加载文件或程序集“System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件。 (E:\SmsShtx2005\SmsShtx\web.config line 114) (E:\SmsShtx2005\SmsShtx\web.config line 114)
在 System.Web.Configuration.HttpModuleAction.get_Entry()
在 System.Web.Configuration.HttpModulesSection.CreateModules()
在 System.Web.HttpApplication.InitModules()
在 System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)
在 System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)
在 System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)
在 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
-->
--. (Microsoft.ReportingServices.Designer)
senxp 2007-05-28
  • 打赏
  • 举报
回复
我自己写了一个,需要的发邮件到senxp@163.com,我会在6月25号前回邮件,因6月中旬要考试,这阵子没时间
gui0605 2007-05-28
  • 打赏
  • 举报
回复
介绍的好简单...
hertcloud 2007-05-28
  • 打赏
  • 举报
回复
这里看看.
http://blog.csdn.net/UFO_CSDN/archive/2004/01.aspx
gui0605 2007-05-28
  • 打赏
  • 举报
回复
就是说我现在的查询是一个复杂的查询,不是一张表,也不是几张表简单的连接,还带有参数,所以我希望在代码中控制报表的数据源,而不是用向导生成.
NekChan 2007-05-28
  • 打赏
  • 举报
回复
不明白意思

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧