
Problem in loading crystal report
Hi Friends,
Am facing one problem with Crystal Reports.i want to populate the data from
asp.net using crystal report.
I want to display a mailing list.for that i had selected the mail format in
the crystal report and i had completed the entire procedure for creating a
report.after that i put a report viewer control in the aspx page and then i
went into the reportsource property of the control and in the custom
bindings property,i gave the entire reports path as
"c:\inetpub\wwwroot\resvbnet\crystalreport1.rpt".i haven't put any code in
the codebehind(vb.net).after that, the design view is showing some dummy
data.when i run the application, the pasge displays the report viewer
control in the same way as i had dragged on to the design view(no dummy
datas or actual datas are displayed).and showing some message in it saying
"Use report source or databindings property to specify a report source
"..does anyone know what will be this problem..
Next i tried by removing the settings of the report source property of the
report viewer control at design time.and then i put the code in the page
load as given below.
Try
CrystalReportViewer1.ReportSource =
"c:\InetPub\wwwroot\ResVbNet\CrystalReport1.rpt"
CrystalReportViewer1.DataBind()
Catch ex As Exception
Response.Write(ex.Message)
End Try
Then it shows an error as "Login Failed"
Exception Details:
CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
Can anyonne help me in anyone of these steps.
hope someone will help me out in this.
Thanx in advance
Sujith