cancel
Showing results for 
Search instead for 
Did you mean: 

CRVS2010 Beta - Setting 'SA' password

Former Member
0 Kudos

Hello,

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

Pascal

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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

Answers (2)

Answers (2)

former_member208657
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

Hello,

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.Load("C:\PO_Customer.rpt")
Report.SetDatabaseLogon("uid", "pwd")
CrystalReportViewer1.ReportSource = Report

Note: You need to include the namespaces:

CrystalDecisions.CrystalReport.Engine

CrystalDecisions.Shared

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

Hope it helps.

Thanks.

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