Avatar billede taxdaddy Nybegynder
16. juli 2002 - 10:26 Der er 2 kommentarer og
1 løsning

VB.Net - Crystal Reports - Data access

Hello

I have a Huge problem,.. I have build a form, with a Crystal Reports viewer
on it, (+ included report) in
my project.. The report uses a connection to a SQL database..  Se code.
Everything works fine om my devel machine, but for some reason CR pops up
asking for a DB connection when i deploy the application. (I have included
all of the CR merge modules, + entered the licence key in regwiz.msm)
Nothing works even if i enter the correct db info.)?

Anybody have a clue on whats wrong ????

Thanx

//Carlos

My code.(Parts of it is from support.crystaldecisions.com)
-----------------------
crReportDocument = New CrystalReport1()

crTableLogonInfo = New TableLogOnInfo()

crConnectionInfo = New ConnectionInfo()

crConnectionInfo.DatabaseName = "databasename"

crConnectionInfo.ServerName = "servername"

crConnectionInfo.UserID = "userid"

crConnectionInfo.Password = "password"

crTableLogonInfo.ConnectionInfo = crConnectionInfo

For Each crTable In crReportDocument.Database.Tables

crTable.ApplyLogOnInfo(crTableLogonInfo)

Next

CrystalReportViewer1.ReportSource = crReportDocument
Avatar billede askhoej Praktikant
16. juli 2002 - 12:42 #1
Hi

I have used the following example to implement CR in my application and it works just fine.

http://aspfree.com/authors/jitajay/crystalreport.aspx

/askhoej
Avatar billede taxdaddy Nybegynder
16. juli 2002 - 16:50 #2
Thanx. but my problem is in a Windows app. When deploying the app. so it does not solve my prob. but thanx anyway for the link, maybee i should convert my app to a webapp ;)
Avatar billede taxdaddy Nybegynder
16. maj 2003 - 18:46 #3
.....
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester