Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have this code in index.aspx

XML
<%@ 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>

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
Posted

1 solution

yhty wrote:
but i want change the database, server etc before call the rpt how can i do that?
About crystal reports connection string[^]
Crystal Report Deployment different server name[^]
Change Crystal Report Connection at Runtime in Visual studio 2005[^]
yhty wrote:
Also other question is possible to change the QUERY also?
How to change SQL Query in Crystal Report in VS2008 with C#?[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900