Asp.net水晶报表安装部署(vs2008)
在部署水晶报表时主要遇到支持组件的问题。
首先,需要在服务器上需要安装“CRRedist2008_x86.msi”和汉化包“CRRedist2008_x86_chs.msi”。
vs.net 2008,在这个目录
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5
vs.net 2005,在这个目录
C:\Program Files\Microsoft Visual Studio 8\ReportViewer
vs.net 2008,在这个目录
C:\Program Files\Microsoft Visual Studio 9.0\ReportViewer
接着,安装好了CRRedist2005_x86.msi 后,系统会在服务器的网站中建立一个aspnet_client文件夹。此文件夹中含有水晶报表的相关控件及图标。把CrystalReportWebFormViewer4文件夹拷贝到自己的虚拟目录的根文件夹下的aspnet_client\system_web\2_0_50727就可以正常显示水晶报表的工具栏图标了。
CrystalReportWebFormViewer4在此目录下
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles
--------------------------暂留问题------------------------
这三个DLL在发布的网站Bin文件夹中未发现,不一定有用
将下面几个dll拷贝到/bin下,注意版本号
microsoft.reportviewer.common.dll
microsoft.reportviewer.processingobjectmodel.dll
microsoft. reportviewer.webforms.dll
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/guanlei029/archive/2009/08/15/4449744.aspx
相关文档:
+++ Cookie01.aspx页面
++ 页面代码如下:
<asp:TextBox ID="TextBox1" runat="server" ForeColor="Red" Width="182px">Name</asp:TextBox>
<asp:Button ID="BtnCookie" runat="server" OnClick="BtnCookie_Click" Text="BtnCookie" /><br />
++ 后台代码如下:
protected void BtnCookie_Cl ......
+++ HiddenField01.aspx页面
++ 页面代码如下:
<asp:HiddenField ID="HiddenField1" runat="server" />
<asp:HiddenField ID="HiddenField2" runat="server" />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
++ 后台代码,如下:
protected void Button1_C ......
+++ 修改WebConfig文件:
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="connStr" value="Data Source=ora11g;uid=scott;pwd=tiger;unicode=true"/>
</appSettings>
<connectionStrings>
<ad ......
您可以使用HTTP模块,一个到ASP.NET HttpApplicationState类的扩展,在Global.asax编写代码强制ASP.NET在每一个页面请求时自动注入依赖的对象,就像在ASP.NET Web窗体应用程序中讨论的一样.
下列方法显示了一个合适的方法能够获取PreRequestHandlerExecute事件将它自己注入到ASP.NE ......
1. aspx页面端代码:
<div class="gv-footer">
<asp:LinkButton ID="btFirstPage" runat="server" CommandArgument="first" OnClick ="PagerButton_Click">首页</asp:LinkButton>
<asp:Lin ......