Skip to Content

SQL Logon Dialog?

Hi,

When I set my reports datatable connection info it is ignored and I get the SQL connection login. I have set the integrity to true. Here is my code:-

With crConnectionInfo

.ServerName = Session("SiteSQLName")

.DatabaseName = Session("DatabaseName")

.IntegratedSecurity = True

crConnectionInfo.Type = CrystalDecisions.Shared.ConnectionInfoType.SQL

End With

crDatabase = rptCICPrint.Database

crTables = crDatabase.Tables

For Each crTable In rptCICPrint.Database.Tables

crTableLogonInfo = crTable.LogOnInfo

crTableLogonInfo.ConnectionInfo = crConnectionInfo

crTable.ApplyLogOnInfo(crTableLogonInfo)

Next

This code works in another project but not the one I am currently working on.

Regards,

Roger

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 28, 2016 at 04:30 PM

    What SDK are you using? Have you updated it to recent patch release?

    If it works on one PC but not your then check your DB connection properties and be sure you have access to the Database. CR respects DB security, if you don't have access then either will the report.

    Don

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.