Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Logon Failure on Load() Post Reply Post New Topic
Author Message
Nabelrock
Newbie
Newbie


Joined: 04 Jul 2011
Online Status: Offline
Posts: 1
Quote Nabelrock Replybullet Topic: Logon Failure on Load()
     Posted: 04 Jul 2011 at 5:00pm
Hi, I'm experiencing a problem with loading the report document,
 
Here's the relevant code lines in VB.net:
 
Dim oRpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
oRpt.Load("C:\Test.rpt")
oRpt.SetDatabaseLogon("testuser", "pword")
 
The Test.rpt is connecting to a database using the login details "testuser", "pword". The weird thing is, when line 2 "oRpt.Load("C:\Test.rpt")" is executed, the DB server logs an Audit Failure.
 
Question is, why does the report try to connect to the DB when the SetDatabaseLogon() hasn't even been set? Just loading the rpt file connects to the server? Confused
 
appreciate any help anyone can give, thanks! Smile
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum