-
Crystal Report questions
Is there another way to display a report without a CrystalReportViewer? Is there something like Report.Show?
Also... How do I get it to stop asking me to log in everytime I show the report? I have configured my ConnectionInfo object, but I can't find a function that will Logon.
Thanks for any help.
:)
-
As far as I'm aware you have to use the viewer to display reports.
To prevent it asking you to log on you need to provide the login details on the load event of the report viewer i.e.
Dim tbCurrent As CrystalDecisions.CrystalReports.Engine.Table
Dim tliCurrent As CrystalDecisions.Shared.TableLogOnInfo
For Each tbCurrent In cbsMain.Database.Tables
tliCurrent = tbCurrent.LogOnInfo
With tliCurrent.ConnectionInfo
.ServerName = ""
.UserID = ""
.Password = ""
.DatabaseName = ""
End With
tbCurrent.ApplyLogOnInfo(tliCurrent)
Next tbCurrent
You need to do this for each report. If anyone knows of an easier way let me know.