Showing results for 
Search instead for 
Did you mean: 

CRVS2010 Beta - Setting 'SA' password

Former Member
0 Kudos


I just installed cr for vs2010, and i found in toolbox the "CrystalReportViewer" i drg it to my form and in the form load i put that code:

str = "C:\PO_Customer.rpt"

        Me.CrystalReportViewer1.ReportSource = str

The report is openning but before it asking me the passwords for 'SA', i enter the passowrd and everything is workiing,

My question is: Where can i set this password in my application to stop asking the password when openning the report?

Thank's a lot


Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Final Production release is now available. See this thread for more info:

Answers (2)

Answers (2)

Active Contributor
0 Kudos

I realize you are new to these forums, but I suggest you do a bit of research before you post basic questions like this to the forums. The Developer Guide and API reference for Crystal Reports 2008 will also be very helpful to you.

Former Member
0 Kudos


The password prompt is for the database credentials needed by the report. You need to use the ReportDocument Object model to pass parameters, database credentials etc to the report.

The following code should help you:

Dim Report As New ReportDocument()
Report.SetDatabaseLogon("uid", "pwd")
CrystalReportViewer1.ReportSource = Report

Note: You need to include the namespaces:



You might want to look for Samples and SDK document from here:

Hope it helps.


Edited by: A G on Nov 2, 2010 7:39 PM