srikri78
May 28th, 2003, 02:31 AM
Hi
I created a ".csv" file with help of query analyzer . I kept that file in "c:\" , now i created a "crystal report using " asp.net with c# . I went to "report expert " and added the columns in the ".csv" , in the code behind file i created a oledbconnection to the ".csv" ,wrote a "select * from the aa.csv" and got the values in the dataset and then i did the following
crystalreport1.setdatasource =ds;
crystalreportviewer1.reportsource=crystalreport1;
on running the solution i get the following error
Logon failed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
code:
oConn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\xtreme.mdb;");
OAdapt = new OleDbDataAdapter("select * from Supplier",oConn);
DataSet ds = new DataSet();
OAdapt.Fill(ds);
oRpt.SetDataSource(ds);
CrystalReportViewer1.ReportSource =oRpt;
I need ur help ...
I created a ".csv" file with help of query analyzer . I kept that file in "c:\" , now i created a "crystal report using " asp.net with c# . I went to "report expert " and added the columns in the ".csv" , in the code behind file i created a oledbconnection to the ".csv" ,wrote a "select * from the aa.csv" and got the values in the dataset and then i did the following
crystalreport1.setdatasource =ds;
crystalreportviewer1.reportsource=crystalreport1;
on running the solution i get the following error
Logon failed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
code:
oConn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\xtreme.mdb;");
OAdapt = new OleDbDataAdapter("select * from Supplier",oConn);
DataSet ds = new DataSet();
OAdapt.Fill(ds);
oRpt.SetDataSource(ds);
CrystalReportViewer1.ReportSource =oRpt;
I need ur help ...