Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Hello everyone,
I posted already one question for the same issue(Question link). But yet to solution.
Am using MS access 2007, VS 2010 and VB.Net to develop application. Worked well in developing machine. Installing in client machine also works well. When my application started to generate report it popups the database login window. How to solve this?

Actually popup occurs for report which handles 2 tables to generate.
Reports with single table working properly.

Pop up asks for:
1.Server name : Shows My developing machine database location
2. Database name : Empty
3. User name : Admin
4. Password : Empty

And i tried

VB
Dim crtableLogoninfos As New TableLogOnInfos()
Dim crtableLogoninfo As New TableLogOnInfo()
Dim crConnectionInfo As New ConnectionInfo()
Dim CrTables As Tables
Dim CrTable As Table
'Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
With crConnectionInfo
    .DatabaseName = Application.StartupPath & "\sdcartdb.mdb"
    .Password = ""
End With
CrTables = Report.Database.Tables
For Each CrTable In CrTables
    crtableLogoninfo = CrTable.LogOnInfo
    crtableLogoninfo.ConnectionInfo = crConnectionInfo
    CrTable.ApplyLogOnInfo(crtableLogoninfo)
Next


Still popup occuring.
I tried
view.SetDatabaseLogon(user, pwd)
No hope.
Can anyone help me out of this?
Posted
Updated 8-Sep-16 2:08am

set ODBC SETTING in client machine.
still popup exsisit install crystal runtime version in client machine.

hope it will resolve y r issue.
 
Share this answer
 
I used the following code,
VB
Report.DataSourceConnections.Clear()
Report.DataSourceConnections.Item(0).SetConnection(Application.StartupPath & "\db.mdb", "db.mdb", 1)


And solved... Thanks..
 
Share this answer
 
C#
my solution was by installing SQL Server 2012 Client Tool Connectivity, and backward client connectivity components using SQL Server setup source.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900