Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I'm trying to develop crystal reports for a VB.NET app. I created a report and added a crystal report viewer to my form in my app. When I run the app and open the form to display the report, a login screen appears to enter a password. Is there a way to by-pass this - i.e. code the user name and password in the viewer?
Posted
I'm not sure. I think it's coming from Crystal because on the top of the login screen it says - Main report. I have another form that retrieves data from the database, but the connect string has all the info so the data is automatically retrieved when the form opens.
Posted
I vaguely remeber this happening to me once? I think there is a post on this site regarding it if you have a search...
My website
Posted

In case anyone is interested, it was pretty simple:

 

VB:

 

Dim myReport As New CrystalReport1

 

myReport.SetDatabaseLogon("userid", "password")

CrystalReportViewer1.ReportSource = myReport

Posted
Yes - but I do remember seeing a question about how to get rid of the logon screen when you have an embedded report. Not sure if that was solved. So far, I haven't needed to do that.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...