Skip to Content
0

Launching Crystal Reports executing thru Visual Studio 2015

Jan 16, 2017 at 05:33 PM

93

avatar image
Former Member

I am running a crystal report thru visual studio. Every time I run it from the users machine it ask me for a sql server username and database. How can I embed it in the code. The has full access to the sql server but it still asks for username and password

PrivateSub CrystalReportViewer1_Load(sender AsObject, e AsEventArgs) Handles CrystalReportViewer1.Load

Dim rpt AsNew CrystalDecisions.CrystalReports.Engine.ReportDocument()

rpt.Load("\\vmhb-design\Users\server\Documents\Crystal Reports\Programming Reports\Inspection Summary For a Given Date.rpt")

CrystalReportViewer1.ReportSource = rpt

CrystalReportViewer1.ReportSource = rpt

10 |10000 characters needed characters left characters exceeded
Former Member

Update just FYI I am opening two SQL Databases for this report

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Dell Stinnett-Christy Jan 17, 2017 at 05:45 PM
0

The code here has info about how to code for logging in to the database.

-Dell

Share
10 |10000 characters needed characters left characters exceeded