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!

Can't view report using ASP.NET

Status
Not open for further replies.

vcharles

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

I'm getting error message "No valid report source is available" with the code below.

This code worked ok from my windows form, can you please help me with the correct syntax for the web form. The error occurs when I click on the tree view which contains the group data, for some reason the detail data can be viewed from the main screen.

Thanks,

Code:

If IsPostBack Then
Dim myaop6report As New AOP6RPT10X
Dim crConnectionInfo As ConnectionInfo = New ConnectionInfo
crConnectionInfo.ServerName = (Application.StartupPath & "\AOPT2002org.mdb")
crConnectionInfo.Password = "testaopupdate"
setDBLogonForReport(crConnectionInfo, myaop6report)
myaop6report.RecordSelectionFormula = "{AOP5.nsn} like " & "'*" & TextBox1.Text & "*'" & ""
CrystalReportViewer1.ReportSource = myaop6report
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top