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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load report failed

Status
Not open for further replies.

mlh2004

Programmer
Nov 11, 2003
1
TR
Hello everyone:

I am using vb.net 2002, msde2000 database, and windows 98,and i set up .net
framework 1.1 and MDAC 2.7 and msde2000 ,everything fine but
i have a problem,i load a report I see "Load report failed"
my code and dialog message down here
please help me

-----
Dim tbCurrent As CrystalDecisions.CrystalReports.Engine.Table

Dim tliCurrent As CrystalDecisions.Shared.TableLogOnInfo

Dim rptExpensiveProducts As New ReportDocument()

Try

rptExpensiveProducts.Load("c:\program files\hhh\crystalreport1.rpt")

For Each tbCurrent In rptExpensiveProducts.Database.Tables

tliCurrent = tbCurrent.LogOnInfo

With tliCurrent.ConnectionInfo

.ServerName = "(local)" ----->or localhost I tryed
.UserID = "sa"

.Password = ""

.DatabaseName = "Northwind"

End With

tbCurrent.ApplyLogOnInfo(tliCurrent)

Next tbCurrent

crvBasic.ReportSource = rptExpensiveProducts

----------------
and dialog message is here

database= (local)

login=

password=

tables=customers
-------
,what ý must do?
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top