Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10519

Re: Upgrading SAP CR for VS2010 From 13.0.2000.0 to 13.0.8.1216

$
0
0

Hi Jan

 

I could duplicate the issue. But I think only because I do not have the database. If I use my report and a valid database connection, I get the LOV prompting just fine. Which may be a clue, but I don't know as I don't have your code. My code is below and includes the typical database logon code:

 

 

Public Sub New()        ' This call is required by the designer.        InitializeComponent()        ' Viewer will not prompt for LOV's, must open the report using the engine first        ' Add any initialization after the InitializeComponent() call.        Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument        Dim crReportDocument As CrystalReport1        Dim crDatabase As Database        Dim crTables As Tables        Dim crTable As Table        Dim crTableLogOnInfo As TableLogOnInfo        Dim crConnectionInfo As ConnectionInfo        crReportDocument.Load("C:\TESTS\Jan\report2.rpt")        'Setup the connection information structure to be used        'to log onto the datasource for the report.        crConnectionInfo = New ConnectionInfo()        With crConnectionInfo            .ServerName = "escalade"    'physical server name            .DatabaseName = "Pubs"            .UserID = "sa"            .Password = "admin"        End With        'Get the table information from the report        crDatabase = crReportDocument.Database        crTables = crDatabase.Tables        'Loop through all tables in the report and apply the connection        'information for each table.        For Each crTable In crTables            crTableLogOnInfo = crTable.LogOnInfo            crTableLogOnInfo.ConnectionInfo = crConnectionInfo            crTable.ApplyLogOnInfo(crTableLogOnInfo)        Next        CrystalReportViewer1.ReportSource = crReportDocument        End Sub
End Class

 

 

- Ludek


Viewing all articles
Browse latest Browse all 10519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>