The report you requested requires further information

Last post 11-25-2009 11:01 PM by qwe123kids. 5 replies.

Sort Posts:

  • The report you requested requires further information

    11-25-2009, 12:14 AM
    • Member
      15 point Member
    • .net_junkie
    • Member since 05-21-2009, 10:57 AM
    • Posts 213

    i have created a crystal report every thing worked fine but when i debug im getting like **The report you requested requires further information. and below it servername,username,password are appearing i dnt knw why dese are coming.i have already given connection when i am creating crystal reports can anyone help me with this??

    It is not about what caused you to fall flat on your back that defines you; it is what you do to get back up on your feet.
  • Re: The report you requested requires further information

    11-25-2009, 1:36 AM
    • All-Star
      27,493 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 9:49 AM
    • Mumbai
    • Posts 4,647

    Hi,


    CrystalDecisions.CrystalReports.Engine.ReportDocument report = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                string oldServerName = "OldServer";
                string newServerName = "NewServer";
                string oldDatabaseName = "OldDatabase";
                string newDatabaseName = "NewDatabase";
                string userID = "MyUserID";
                string password = "MyPassword";

                report.Load(@"C:\My Crystal Reports\Report Name.rpt");

                // Change the server name and database in main reports          
                foreach (CrystalDecisions.Shared.IConnectionInfo connection in report.DataSourceConnections)
                {
                    if ((String.Compare(connection.ServerName, oldServerName, true) == 0) &&
                      (String.Compare(connection.DatabaseName, oldDatabaseName, true) == 0))
                    {
                        // SetConnection can also be used to set new logon and new database table
                        report.DataSourceConnections[oldServerName, oldDatabaseName].SetConnection(
                          newServerName, newDatabaseName, userID, password);
                    }
                }

                // Change the server name and database in subreport
                foreach (CrystalDecisions.CrystalReports.Engine.ReportDocument subReport in report.Subreports)
                {
                    foreach (CrystalDecisions.Shared.IConnectionInfo connection in subReport.DataSourceConnections)
                    {
                        if ((String.Compare(connection.ServerName, oldServerName, true) == 0) &&
                          (String.Compare(connection.DatabaseName, oldDatabaseName, true) == 0))
                        {
                            // SetConnection can also be used to set new logon and new database table
                            subReport.DataSourceConnections[oldServerName, oldDatabaseName].SetConnection(
                              newServerName, newDatabaseName, userID, password);
                        }
                    }
                }


    Chk the above code

    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
  • Re: The report you requested requires further information

    11-25-2009, 3:27 AM
    • Member
      15 point Member
    • .net_junkie
    • Member since 05-21-2009, 10:57 AM
    • Posts 213

    thanks for ur reply,but what for this code?? wen i run my code at first the error dint occured but hw come when i run second

    the error came.


    It is not about what caused you to fall flat on your back that defines you; it is what you do to get back up on your feet.
  • Re: The report you requested requires further information

    11-25-2009, 3:41 AM
    • All-Star
      27,493 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 9:49 AM
    • Mumbai
    • Posts 4,647

    If using Simple Pull method in Crystal report.. U give infomration for local Database from where uR Pulling the Info..

    it just Dyncaillly change the Username and Password

    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
  • Re: The report you requested requires further information

    11-25-2009, 9:43 PM
    • Member
      15 point Member
    • .net_junkie
    • Member since 05-21-2009, 10:57 AM
    • Posts 213

    any other ways of doing this??

    It is not about what caused you to fall flat on your back that defines you; it is what you do to get back up on your feet.
  • Re: The report you requested requires further information

    11-25-2009, 11:01 PM
    • All-Star
      27,493 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 9:49 AM
    • Mumbai
    • Posts 4,647

    C:\Program Files\Microsoft Visual Studio 8\Crystal Reports\Samples


    chk the abelow folder in system it has loads of info on crystal report.

    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
Page 1 of 1 (6 items)