Skip to Content
avatar image
Former Member

Launching Crystal Reports executing thru Visual Studio 2015

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 17, 2017 at 05:45 PM

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


    Add comment
    10|10000 characters needed characters exceeded