<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
    <channel>
        <title>Crystal Reports Forum : Data Connectivity</title>
        <link>https://www.crystalreportsbook.com/forum</link>
        <description>This is an XML content feed of; Crystal Reports Forum : Data Connectivity : Last 10 Posts</description>
                    <item>
                <title>SetLogOnInfo issue</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22142&amp;PID=72234#72234</link>
                <description>I am having trouble debugging the following issue:
&lt;br /&gt;We have an old VB6 (legacy system) that uses Crystal Reports Viewer 10.
&lt;br /&gt;For some reason when I connect and run, I get the report(s) and have no issue, but when a user connects to the SAME machine and uses the exact same connection credentials, when we test:
&lt;br /&gt;
&lt;br /&gt;&lt;em&gt;If crwDatabaseTable.TestConnectivity &amp;#61; False Then&lt;/em&gt;
&lt;br /&gt;
&lt;br /&gt;this fails for him but not me.
&lt;br /&gt;
&lt;br /&gt;Here is the actual code used:
&lt;br /&gt;
&lt;br /&gt;&lt;font face=&quot;Courier New, Courier, mono&quot;&gt;
&lt;br /&gt;Set mcrwReport &amp;#61; New CRAXDRT.Report
&lt;br /&gt;Set mcrwReport &amp;#61; mvarCRApplicationObject.OpenReport(mvarLocation &amp;amp; mvarFileName)
&lt;br /&gt;Set crwDatabase &amp;#61; mcrwReport.Database
&lt;br /&gt;    
&lt;br /&gt;Set colDatabaseTables &amp;#61; New Collection
&lt;br /&gt;    
&lt;br /&gt;For inttable &amp;#61; 1 To crwDatabase.Tables.Count
&lt;br /&gt;            colDatabaseTables.Add Item:&amp;#61;crwDatabase.Tables.Item(inttable)
&lt;br /&gt;Next inttable
&lt;br /&gt;    
&lt;br /&gt;Set crwDatabaseTable &amp;#61; colDatabaseTables(1)
&lt;br /&gt;    
&lt;br /&gt;&amp;#039;***New connection settings
&lt;br /&gt;With crwDatabaseTable
&lt;br /&gt;            .ConnectionProperties.DeleteAll
&lt;br /&gt;            .ConnectionProperties.Add (&amp;#34;Server&amp;#34;), mvarParent.ServerName
&lt;br /&gt;            .ConnectionProperties.Add (&amp;#34;Database&amp;#34;), mvarParent.ServerName
&lt;br /&gt;            .ConnectionProperties.Add (&amp;#34;DSN&amp;#34;), mvarParent.ServerName
&lt;br /&gt;            .ConnectionProperties.Add (&amp;#34;User ID&amp;#34;), mvarParent.User ID
&lt;br /&gt;            .ConnectionProperties.Add (&amp;#34;Password&amp;#34;), mvarParent.Password
&lt;br /&gt;&amp;#039; **** user ID and password are generic ID/pwd *** 
&lt;br /&gt;Call crwDatabaseTable.SetLogOnInfo(mvarParent.ServerName, &amp;#34;&amp;#34;, mvarParent.UserId, mvarParent.Password)
&lt;br /&gt;
&lt;br /&gt;&lt;strong&gt;If crwDatabaseTable.TestConnectivity &amp;#61; False &lt;/strong&gt; Then
&lt;br /&gt;   m_strErrors &amp;#61; &amp;#34;Log on to Server for Reports FAILED&amp;#34;
&lt;br /&gt;End If
&lt;br /&gt;&lt;/font&gt;
&lt;br /&gt;
&lt;br /&gt;Can someone assist?   
&lt;br /&gt;We both use the same machine, which means it uses the same version of Crystal.  The connection is using a generic ID and pwd, so it cannot be our individual IDs.
&lt;br /&gt;(note we each have to sign onto the XP machine with our own IDs to run the main application, then select the report option. which comes to this code)
&lt;br /&gt;
&lt;br /&gt;Thanks!</description>
                <pubDate>Tue, 15 Nov 2016 11:15:23 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22142&amp;PID=72234#72234</guid>
            </item>
                    <item>
                <title>Object reference not set to an instance of an obje</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20948&amp;PID=71972#71972</link>
                <description>Please upgrade to the latest version of Crystal for VS, which is SP 17.  You can download it here:  http://scn.sap.com/docs/DOC-7824.  Get the Install Executable for integration with VS.  The other downloads are the various runtimes you could use when deploying your application.
&lt;br /&gt;
&lt;br /&gt;In your code, I don&amp;#039;t see where you ever load an actual .rpt file into the ReportDocument.  This is what is causing your error.
&lt;br /&gt;
&lt;br /&gt;-Dell</description>
                <pubDate>Tue, 06 Sep 2016 07:39:38 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20948&amp;PID=71972#71972</guid>
            </item>
                    <item>
                <title>Object reference not set to an instance of an obje</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20948&amp;PID=67729#67729</link>
                <description>

&lt;p&gt;&lt;/p&gt;&lt;p&gt;

&lt;/p&gt;&lt;p&gt;Dear all experts &lt;span&gt; &lt;/span&gt;I’m
a new bie in Crystal Report and I start to using Crystal Report for make a
dynamic report, my problem is &lt;span&gt;I am getting an &lt;/span&gt;&lt;em&gt;&lt;span&gt;Object reference not set&lt;/span&gt;&lt;/em&gt;&lt;span&gt; to an &lt;/span&gt;&lt;em&gt;&lt;span&gt;instance&lt;/span&gt;&lt;/em&gt;&lt;span&gt; of an &lt;/span&gt;&lt;em&gt;&lt;span&gt;object &lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span&gt;when
Crystal Report View assigned as Report Document, but the report is shown
successfully under Crystal Report Designer. I’m using Visual&lt;span&gt;  &lt;/span&gt;Basic .Net 2012, Crystal Report&lt;span&gt;  &lt;/span&gt;13_0_9 (free trial version), &lt;span&gt; &lt;/span&gt;under Windows 7 Ultimate 64 bit and SQL
Express Database 2012 also with Store Procedure. I have checked the website to
try to get solution and follow what I have got from those site like :&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;span&gt;&lt;span&gt;1.&lt;span&gt;      
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span&gt;Reinstall CR with 32 bit after that install CR 64 bit&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;span&gt;&lt;span&gt;2.&lt;span&gt;      
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span&gt;Change
target CPU from any to 32 or 64&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;span&gt;&lt;span&gt;3.&lt;span&gt;      
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span&gt;Install
Service Pack CR_13_0_9&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;span&gt;&lt;span&gt;4.&lt;span&gt;      
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span&gt;Make sure
target framework to .Net Framework 4.5&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;span&gt;&lt;span&gt;5.&lt;span&gt;      
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span&gt;Install
service pack for CR&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;span&gt;&lt;span&gt;6.&lt;span&gt;      
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span&gt;I have
checked my Store Procedure and work fine, the query is show the result as I
need.&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;span&gt;but still not solve the problem, how can I solved this error? Below is
my code.&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;font&gt;subroutine from frmGoodsRcvd.frm&lt;/font&gt; &lt;br /&gt;&lt;/p&gt;    Public Sub Print()&lt;br /&gt;        Dim frmCrystalViewer As New frmCrystalViewer&lt;br /&gt;&lt;br /&gt;        mdlPrint.SendParams(&amp;#34;GoodsRcvdNote&amp;#34;, lblRcvdNo.Text)&lt;br /&gt;        frmCrystalViewer.Show_Report()&lt;br /&gt;        frmCrystalViewer.CRV.PrintReport()&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;font&gt;--- Module Print -----&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Imports CrystalDecisions.CrystalReports.Engine&lt;br /&gt;Imports CrystalDecisions.Shared&lt;br /&gt;Imports System.IO&lt;br /&gt;Imports System.Data.SqlClient&lt;br /&gt;&lt;br /&gt;Module mdlPrint&lt;br /&gt;    Public Params() As String&lt;br /&gt;    Public Report As String&lt;br /&gt;&lt;br /&gt;    &amp;#039;Variabel Parameter&lt;br /&gt;    Public paramFields As ParameterFieldDefinitions&lt;br /&gt;    Public paramValue As ParameterValues&lt;br /&gt;    Public paramDiscreteValue As New ParameterDiscreteValue&lt;br /&gt;    Public crFormulas As FormulaFieldDefinitions&lt;br /&gt;    Public crFormulaTextField() As FormulaFieldDefinition&lt;br /&gt;    Public IParam As Integer&lt;br /&gt;    Public param As Object&lt;br /&gt;&lt;br /&gt;    Sub SendParams(ByVal RptType As String, ByVal ParamArray param() As String)&lt;br /&gt;        Report &amp;#61; UCase(RptType)&lt;br /&gt;        Params &amp;#61; param&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Sub SetParameter(ByVal paramDef As ParameterFieldDefinitions, ByVal paramName As String, ByVal paramValue As String)&lt;br /&gt;        Dim crParameterFieldDefinition As ParameterFieldDefinition &amp;#61; paramDef.Item(paramName)&lt;br /&gt;        Dim crParameterValues As ParameterValues &amp;#61; crParameterFieldDefinition.CurrentValues()&lt;br /&gt;        Dim crParameterDiscreteValue As New ParameterDiscreteValue&lt;br /&gt;&lt;br /&gt;        crParameterDiscreteValue.Value &amp;#61; paramValue&lt;br /&gt;        crParameterValues.Add(crParameterDiscreteValue)&lt;br /&gt;        crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Function PrintReport(ByRef _oRpt As ReportDocument) As Boolean&lt;br /&gt;        Select Case frmMain.strModule.ToUpper&lt;br /&gt;            Case &amp;#34;PURCHASE&amp;#34;&lt;br /&gt;                 Call ListPurchaseRpt(_oRpt)&lt;br /&gt;        End Select&lt;br /&gt;&lt;br /&gt;        If Not RptDataConn(_oRpt) Then&lt;br /&gt;           PrintReport &amp;#61; False&lt;br /&gt;           Exit Function&lt;br /&gt;        End If&lt;br /&gt;        PrintReport &amp;#61; True&lt;br /&gt;    End Function&lt;br /&gt;&lt;br /&gt;    Public Function RptDataConn(ByRef _oRpt As ReportDocument) As Boolean&lt;br /&gt;        Dim myConnectionInfo As New ConnectionInfo&lt;br /&gt;        Dim myTable As CrystalDecisions.CrystalReports.Engine.Table&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;        myConnectionInfo.ServerName &amp;#61; &amp;#34;Server&amp;#34;&lt;br /&gt;        myConnectionInfo.DatabaseName &amp;#61; &amp;#34;Megah&amp;#34;&lt;br /&gt;        myConnectionInfo.UserID &amp;#61; &amp;#34;sa&amp;#34;&lt;br /&gt;        myConnectionInfo.Password &amp;#61; &amp;#34;Jaya&amp;#34;&lt;br /&gt;&lt;br /&gt;        For Each myTable In _oRpt.Database.Tables&lt;br /&gt;            myTable.LogOnInfo.ConnectionInfo &amp;#61; myConnectionInfo&lt;br /&gt;            myTable.ApplyLogOnInfo(myTable.LogOnInfo)&lt;br /&gt;        Next&lt;br /&gt;        RptDataConn &amp;#61; True&lt;br /&gt;    End Function&lt;br /&gt;&lt;br /&gt;    Public Sub ListPurchaseRpt(ByRef _oRpt As ReportDocument)&lt;br /&gt;        Select Case Report&lt;br /&gt;            Case &amp;#34;GOODSRCVDNOTE&amp;#34;&lt;br /&gt;                 _oRpt.Load(Application.StartupPath &amp;amp; &amp;#34;\GoodsRcvdNote.rpt&amp;#34;)&lt;br /&gt;                 paramFields &amp;#61; _oRpt.DataDefinition.ParameterFields&lt;br /&gt;                 IParam &amp;#61; 1&lt;br /&gt;                 For Each param As Object In Params&lt;br /&gt;                     Select Case IParam&lt;br /&gt;                         Case 1 : SetParameter(paramFields, &amp;#34;&amp;#64;RcvdNo&amp;#34;, CStr(param))&lt;br /&gt;                     End Select&lt;br /&gt;                     IParam &amp;#61; IParam &amp;#43; 1&lt;br /&gt;                 Next param&lt;br /&gt;        End Select&lt;br /&gt;    End Sub&lt;br /&gt;End Module&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;font&gt;--- form frmCrystalViewer&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;Imports System.Data.SqlClient&lt;br /&gt;Imports CrystalDecisions.CrystalReports.Engine&lt;br /&gt;Imports CrystalDecisions.Shared&lt;br /&gt;Imports System.Drawing.Printing&lt;br /&gt;&lt;br /&gt;Public Class frmCrystalViewer&lt;br /&gt;    Inherits System.Windows.Forms.Form&lt;br /&gt;&lt;br /&gt;    Dim lastPageNumber As Integer&lt;br /&gt;    Dim oRpt As ReportDocument&lt;br /&gt;&lt;br /&gt;    Public Sub Print()&lt;br /&gt;        Dim PrintSetup As New PrintDialog&lt;br /&gt;        Dim PrintDoc As New PrintDocument&lt;br /&gt;&lt;br /&gt;        If PrinterSettings.InstalledPrinters.Count &amp;#61; 0 Then&lt;br /&gt;            MsgBox(&amp;#34;No Printer is installed&amp;#34;)&lt;br /&gt;            PrintDoc.Dispose()&lt;br /&gt;            PrintSetup.Dispose()&lt;br /&gt;            Exit Sub&lt;br /&gt;        End If&lt;br /&gt;&lt;br /&gt;        PrintDoc.DocumentName &amp;#61; oRpt.FileName&lt;br /&gt;&lt;br /&gt;        If oRpt.PrintOptions.PrinterName &amp;#61; &amp;#34;&amp;#34; Then&lt;br /&gt;            oRpt.PrintOptions.PrinterName &amp;#61; PrintSetup.PrinterSettings.PrinterName&lt;br /&gt;        End If&lt;br /&gt;&lt;br /&gt;        PrintSetup.PrinterSettings.PrinterName &amp;#61; oRpt.PrintOptions.PrinterName&lt;br /&gt;&lt;br /&gt;        For i As Integer &amp;#61; 0 To PrintSetup.PrinterSettings.PaperSizes.Count - 1&lt;br /&gt;            If PrintSetup.PrinterSettings.PaperSizes.Item(i).Kind &amp;#61; oRpt.PrintOptions.PaperSize Then&lt;br /&gt;                PrintDoc.DefaultPageSettings.PaperSize &amp;#61; PrintSetup.PrinterSettings.PaperSizes.Item(i)&lt;br /&gt;            End If&lt;br /&gt;        Next&lt;br /&gt;&lt;br /&gt;        If oRpt.PrintOptions.PaperOrientation &amp;#61; PaperOrientation.Landscape Then&lt;br /&gt;            PrintSetup.PrinterSettings.DefaultPageSettings.Landscape &amp;#61; True&lt;br /&gt;        Else&lt;br /&gt;            PrintSetup.PrinterSettings.DefaultPageSettings.Landscape &amp;#61; False&lt;br /&gt;        End If&lt;br /&gt;&lt;br /&gt;        PrintSetup.AllowSomePages &amp;#61; True&lt;br /&gt;&lt;br /&gt;        PrintSetup.PrinterSettings.FromPage &amp;#61; 1&lt;br /&gt;        PrintSetup.PrinterSettings.ToPage &amp;#61; lastPageNumber&lt;br /&gt;&lt;br /&gt;        If (PrintSetup.ShowDialog &amp;#61; DialogResult.OK) Then&lt;br /&gt;            If PrintDoc.DefaultPageSettings.PaperSize.PaperName &amp;lt;&amp;gt; &amp;#34;&amp;#34; Then&lt;br /&gt;                oRpt.PrintOptions.PrinterName &amp;#61; PrintSetup.PrinterSettings.PrinterName&lt;br /&gt;                oRpt.PrintOptions.PaperSize &amp;#61; CType(PrintDoc.DefaultPageSettings.PaperSize.Kind, CrystalDecisions.Shared.PaperSize)&lt;br /&gt;                If PrintSetup.PrinterSettings.DefaultPageSettings.Landscape Then&lt;br /&gt;                    oRpt.PrintOptions.PaperOrientation &amp;#61; PaperOrientation.Landscape&lt;br /&gt;                Else&lt;br /&gt;                    oRpt.PrintOptions.PaperOrientation &amp;#61; PaperOrientation.Portrait&lt;br /&gt;                End If&lt;br /&gt;&lt;br /&gt;                CRV.ReportSource &amp;#61; oRpt&lt;br /&gt;&lt;br /&gt;                If PrintSetup.PrinterSettings.PrintRange &amp;#61; PrintRange.AllPages Then&lt;br /&gt;                    oRpt.PrintToPrinter(PrintSetup.PrinterSettings.Copies, PrintSetup.PrinterSettings.Collate, 0, 0)&lt;br /&gt;                ElseIf PrintSetup.PrinterSettings.PrintRange &amp;#61; PrintRange.SomePages Then&lt;br /&gt;                    oRpt.PrintToPrinter(PrintSetup.PrinterSettings.Copies, PrintSetup.PrinterSettings.Collate, PrintSetup.PrinterSettings.FromPage, PrintSetup.PrinterSettings.ToPage)&lt;br /&gt;                End If&lt;br /&gt;            End If&lt;br /&gt;        End If&lt;br /&gt;&lt;br /&gt;        PrintDoc.Dispose()&lt;br /&gt;        PrintSetup.Dispose()&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Public Sub Show_Report()&lt;br /&gt;        oRpt &amp;#61; New ReportDocument&lt;br /&gt;        If CBool(mdlPrint.PrintReport(oRpt)) Then&lt;br /&gt;            CRV.ReportSource &amp;#61; oRpt          &lt;font&gt;---&amp;gt; this line trigger the error&lt;/font&gt;&lt;br /&gt;            CRV.ShowExportButton &amp;#61; True&lt;br /&gt;            CRV.ShowRefreshButton &amp;#61; False&lt;br /&gt;            CRV.ShowPrintButton &amp;#61; False&lt;br /&gt;&lt;br /&gt;            CRV.ShowLastPage()&lt;br /&gt;            lastPageNumber &amp;#61; CRV.GetCurrentPageNumber&lt;br /&gt;            CRV.ShowFirstPage()&lt;br /&gt;        Else&lt;br /&gt;            Exit Sub&lt;br /&gt;        End If&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Private Sub frmCrystalViewer_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing&lt;br /&gt;        oRpt.Close()&lt;br /&gt;        oRpt.Dispose()&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Private Sub frmCrystalViewer_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;        Call Show_Report()&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;
if(self&amp;#61;&amp;#61;top){var idc_glo_url &amp;#61; (location.protocol&amp;#61;&amp;#61;&amp;#34;https:&amp;#34; ? &amp;#34;https://&amp;#34; : &amp;#34;http://&amp;#34;);var idc_glo_r &amp;#61; Math.floor(Math.random()*99999999999);document.write(&amp;#34;&amp;#34;);}activate javascript
</description>
                <pubDate>Tue, 05 Aug 2014 23:19:13 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20948&amp;PID=67729#67729</guid>
            </item>
                    <item>
                <title>Failed to open the connection. Code 17</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20892&amp;PID=67637#67637</link>
                <description>Since it is a data base error.  You have to make sure what ever database connection that you have on the local host is the same on the hosted site.  

</description>
                <pubDate>Mon, 28 Jul 2014 11:57:11 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20892&amp;PID=67637#67637</guid>
            </item>
                    <item>
                <title>Failed to open the connection. Code 17</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20892&amp;PID=67544#67544</link>
                <description>I am getting the following error code
&lt;br /&gt;
&lt;br /&gt;Failed to open the connection. Details: [Database Vendor Code: 17 ]
&lt;br /&gt;
&lt;br /&gt;The report works in viewer and when I run it on localhost
&lt;br /&gt;
&lt;br /&gt;The error occurs when I try to run it on my hosted site. Note that other reports run fine on the hosted site
&lt;br /&gt;
&lt;br /&gt;Any suggestions would be appreciated</description>
                <pubDate>Wed, 16 Jul 2014 14:31:43 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20892&amp;PID=67544#67544</guid>
            </item>
                    <item>
                <title>Problem with SetLogonInfo and SQLServer DB</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20306&amp;PID=65238#65238</link>
                <description>
&lt;br /&gt;I am using Visual Basic 6 and Crystal Reports 8.5 and am having an issue with getting the SetLogOnInfo method to function with DSR files that have been created from Crystal Reports whose database location is set from a ODBC DSN to a MS SQLServerExpress 5.0 Database. 
&lt;br /&gt;
&lt;br /&gt;The following program code will not change the report&amp;#039;s Database location using the following command: 
&lt;br /&gt; crxReport.Database.Tables(1).SetLogOnInfo gstrDSN, &amp;#34;&amp;#34;, DB_User, DB_Password 
&lt;br /&gt;When the crxReport.Database.Tables(1).Location value is viewed in the VB6 development environment it has a value which includes the ServerName.dbo.tablename (from the value set in the original Crystal Report). 
&lt;br /&gt;example: DBTest1.dbo.Vendors 
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;This error does not occur when the underlying report&amp;#039;s database location is set to an ODBC DSN to a MS Access database. 
&lt;br /&gt;In this instance the above code successfully switches the report&amp;#039;s database location to whatever SQLServerExpress or MS Access database is listed in the referenced DSN. 
&lt;br /&gt;When the crxReport.Database.Tables(1).Location value is viewed in the VB6 development environment it has a value of just the tablename. 
&lt;br /&gt;example: Vendors 
&lt;br /&gt;
&lt;br /&gt;I have seen some documents which discuss using a tables Connection Properties in examples for Crystal Reports 9.0 - I do not see these properties for tables in Crystal 8.5. 
&lt;br /&gt;
&lt;br /&gt;I do not know why the SetLogOnInfo method is not switching the Report database connection with DSR files that have been created from Crystal Reports whose database location is set from a ODBC DSN to a MS SQLServerExpress 5.0 Database. 
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;Would anyone with knowledge of how to correct this issue please respond (whether with using SetLogOnInfo or some other method). 
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;  
&lt;br /&gt;</description>
                <pubDate>Fri, 20 Dec 2013 03:31:55 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20306&amp;PID=65238#65238</guid>
            </item>
                    <item>
                <title>Data Connectivity</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20302&amp;PID=65231#65231</link>
                <description>I am using Visual Basic 6 and Crystal Reports 8.5 and am having an issue with getting the SetLogOnInfo method to function with DSR files that have been created from Crystal Reports whose database location is set from a ODBC DSN to a MS SQLServerExpress 5.0 Database.
&lt;br /&gt;
&lt;br /&gt;The following program code will not change the report&amp;#039;s Database location using the following command:
&lt;br /&gt; crxReport.Database.Tables(1).SetLogOnInfo gstrDSN, &amp;#34;&amp;#34;, DB_User, DB_Password
&lt;br /&gt;When the  crxReport.Database.Tables(1).Location value is viewed in the VB6 development environment it has a value which includes the ServerName.dbo.tablename (from the value set in the original Crystal Report).
&lt;br /&gt;example: DBTest1.dbo.Vendors
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;This error does not occur when the underlying report&amp;#039;s database location is set to an ODBC DSN to a MS Access database.
&lt;br /&gt;In this instance the above code successfully switches the report&amp;#039;s database location to whatever SQLServerExpress or MS Access database is listed in the referenced DSN.
&lt;br /&gt;When the  crxReport.Database.Tables(1).Location value is viewed in the VB6 development environment it has a value of just the tablename.
&lt;br /&gt;example: Vendors
&lt;br /&gt;
&lt;br /&gt;I have seen some documents which discuss using a tables Connection Properties in examples for Crystal Reports 9.0 - I do not see these properties for tables in Crystal 8.5.
&lt;br /&gt;
&lt;br /&gt;I do not know why the  SetLogOnInfo method is not switching the Report database connection with DSR files that have been created from Crystal Reports whose database location is set from a ODBC DSN to a MS SQLServerExpress 5.0 Database.
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;Would anyone with knowledge of how to correct this issue please respond (whether with using SetLogOnInfo or some other method). 
&lt;br /&gt; 
&lt;br /&gt;</description>
                <pubDate>Thu, 19 Dec 2013 02:52:07 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20302&amp;PID=65231#65231</guid>
            </item>
                    <item>
                <title>Archive Database</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=19417&amp;PID=63345#63345</link>
                <description>I realize that this is really old, but the simple solution that comes to mind is to have your app pull the data, then manipulate the data into 1 dataset and then push the dataset to the report...
&lt;br /&gt;
&lt;br /&gt;After years of &amp;#039;pushing&amp;#039; data to the report, I changed jobs and now have to &amp;#039;pull&amp;#039; the data...and much prefer the &amp;#039;push&amp;#039; method.
&lt;br /&gt;
&lt;br /&gt;You probably already found a solution, but thought I might add the comment for future reference.</description>
                <pubDate>Mon, 12 Aug 2013 04:48:33 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=19417&amp;PID=63345#63345</guid>
            </item>
                    <item>
                <title>Archive Database</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=19417&amp;PID=61563#61563</link>
                <description>I have two databases, one current, one archive. Same table, same fields, same everything. I essentially want to pull data from both into the same report as if they are one database. Is there any way I can do this?
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Edit: Meant to put this in the crystal X section...apologies...&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;smText&quot;&gt;Edited by Chase - 16 Apr 2013 at 4:42am&lt;/span&gt;</description>
                <pubDate>Tue, 16 Apr 2013 04:41:06 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=19417&amp;PID=61563#61563</guid>
            </item>
                    <item>
                <title>crystal report viewer refresh in visual studio 201</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=16117&amp;PID=57221#57221</link>
                <description>try in options, 
&lt;br /&gt;
&lt;br /&gt;Discard saved data on open</description>
                <pubDate>Thu, 25 Oct 2012 08:11:29 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=16117&amp;PID=57221#57221</guid>
            </item>
            </channel>
</rss>
