Whenever my report run its displayes a window in which it asking abt User, Password of the database Sqlserver 2000. i dont want to do this at run time i req whenever i run my report it directly shows the record not asking me abt Login n password of the database. for this i used the following coding in the page load but nothing happens it gaves error
"" invalid report file path "",
here is the code::

using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
public partial class _Default : System.Web.UI.Page
    ReportDocument rd = new ReportDocument();

        protected void Page_Load(object sender, EventArgs e)
       rd.SetDatabaseLogon("saima", "allah", "VSDC", "DANCOM");
        string reportpath = Server.MapPath("CrystalReport.rpt");
plz reply me with some solution as i m stuck

Last edited by shabbir; 26Sep2006 at 10:41.. Reason: Code formating.