更改连接设置aspx [英] change connection setting aspx

查看:70
本文介绍了更改连接设置aspx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在index.aspx中有这个代码



I have this code in index.aspx

<%@ Register assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
<%@ Page Language="VB" %>

<script runat="server">

    Sub Page_Load(sender As Object, e As EventArgs)

        Dim  myDataReport
        Dim  crtableLogoninfo
        Dim crConnectionInfo

        myDataReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument()
        myDataReport.Load("C:\inetpub\wwwroot\agora\CrystalReport1.rpt")

        Me.CrystalReportViewer1.ReportSource = myDataReport

    End Sub

</script>



连接字符串在RPT中,是一个OBDC mysql连接,一切正常,但我想在调用rpt之前更改数据库,服务器等,我该怎么做?还有其他问题可以更改QUERY吗?



非常感谢您的帮助


The connection string is in the RPT, is a OBDC mysql connection and all work fine, but i want change the database, server etc before call the rpt how can i do that? Also other question is possible to change the QUERY also?

Thanks a lot for your help

推荐答案

yhty写道:

但是我想在调用rpt之前更改数据库,服务器等我该怎么做?

but i want change the database, server etc before call the rpt how can i do that?

关于水晶报告连接字符串 [ ^ ]

Crystal Report部署不同的服务器名称 [ ^ ]

在Visual Studio 2005中运行时更改Crystal Report连接 [ ^ ]

About crystal reports connection string[^]
Crystal Report Deployment different server name[^]
Change Crystal Report Connection at Runtime in Visual studio 2005[^]

yhty写道:

另外还有其他问题可以更改QUERY吗?

Also other question is possible to change the QUERY also?

如何使用C#在VS2008中更改Crystal Report中的SQL查询? [ ^ ]

这篇关于更改连接设置aspx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆