Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I view a report using ASP.NET?

Status
Not open for further replies.

vcharles

IS-IT--Management
Jun 29, 2004
21
0
0
US
Hello

when I click on the tree to view the report in the main screen, I receive the following error: "No valid report Source is available" the correct results is shown from the tree view but can't see the data in the main screen, therefore I don't think it's a connection problem.

Please Help.

Thanks,

Victor

If IsPostBack Then
Dim myaop6report As New AOP6RPT10X
Dim crConnectionInfo As ConnectionInfo = New ConnectionInfo
crConnectionInfo.ServerName = ("Server.MapPath(AOPT2002org.mdb") ) '***** Works
crConnectionInfo.Password = "testaopupdate"
setDBLogonForReport(crConnectionInfo, myaop6report)
myaop6report.RecordSelectionFormula = "{AOP5.nsn} like " & "'*" & TextBox1.Text & "*'" & ""
CrystalReportViewer1.ReportSource = myaop6report
End If
 
Hi. Do you have a CrystalReportSource control on your Crystal Viewer and then in the code have your report dimmed as dim crReport As New CrystalReport1 or in your case: dim AOP6RPT10X As New CrystalReport1?

Cathy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top