Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can not suppress Crystal Report prompt.

Status
Not open for further replies.

sasa888

Programmer
Oct 15, 2001
131
0
0
US
Hi all, I have the following code written to launch crystal and display on crystal viewer. There is a stored procedure behind the crystal report. Can someone please help. Thank You!

With crConnectionInfo
.ServerName = sServerName
.DatabaseName = sDbname
.UserID = sUserId
.Password = sPassword
End With
crTables = rptDisplayPharmacy.Database.Tables
'Pass in logon information
For Each crTable In crTables
crTableLogonInfos = crTable.LogOnInfo
crTableLogonInfos.ConnectionInfo = crConnectionInfo
crTable.ApplyLogOnInfo(crTableLogonInfos)
Next
CrystalReportViewer1.ReportSource = rptDisplayPharmacy
With rptDisplayPharmacy
.SetParameterValue(0, sPass1)
.SetParameterValue(1, sPass2)
.SetParameterValue(2, sPass3)
.SetParameterValue(3, sPass4)
.SetParameterValue(4, sPass5)
'.PrintToPrinter(1, False, 0, 0)
End With
CrystalReportViewer1.ReportSource = rptDisplayPharmacy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top