crystal report load report faild

M

mt

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
 
E

EricJ

hmm, i thought a lot of these things are embedded in the .rpt itself?
did you try using a standard crystalreportviewer and pointing to the rpt in
design mode?
or are you trying to generate a complete report from scratch using code? (if
thats the case ignore me, i don't have a clue ;) )

eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top