473,738 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

crystal report access database path problem

I am using access database to create a crystal report in VB.NET
Everything works fine when I run on my machine. But when I am
deploying it other windows machines. It is asking for database server
name and logon information. The problem which I understood from this
is that the path is hardcoded in the crystal report and the database
is in my bin folder. when I run my app on other machines it is looking
for the database in that folder and when it is not finding it, it is
prompting me to enter the database location.

Please help me how to get around this problem so that crystal report
can take database file from the application start up path rather than
hard-coding the path.

It is quite frustrating to know crystal reports hard codes the
database path
Nov 20 '05 #1
3 11012
I gave up on Crystal reports with this junk because of that issue, although
if you get the latest pack it may help you.
The thing is I didn't want to have to ship that big sucker for a little app.

I suggest getting the .NET resource kit for free and using the free
Component One Subscription and their reporting tool.

It is nice, simple and flexible.

Shane

"route_code r" <ca**@saai-svc.com> wrote in message
news:95******** *************** ***@posting.goo gle.com...
I am using access database to create a crystal report in VB.NET
Everything works fine when I run on my machine. But when I am
deploying it other windows machines. It is asking for database server
name and logon information. The problem which I understood from this
is that the path is hardcoded in the crystal report and the database
is in my bin folder. when I run my app on other machines it is looking
for the database in that folder and when it is not finding it, it is
prompting me to enter the database location.

Please help me how to get around this problem so that crystal report
can take database file from the application start up path rather than
hard-coding the path.

It is quite frustrating to know crystal reports hard codes the
database path

Nov 20 '05 #2
You will need to set the database location in code. Here is sample:

Dim logOnInfo As New TableLogOnInfo

' Set the connection information
OdbcConnection1 .Open()
logOnInfo.Conne ctionInfo.Datab aseName = OdbcConnection1 .Database & ".mdb"
logOnInfo.Conne ctionInfo.Passw ord = "pwd"
OdbcConnection1 .Close()

' Apply connection info. to every table in the report
For Each tbl As Table In rpt.Database.Ta bles
tbl.ApplyLogOnI nfo(logOnInfo)
Next

"route_code r" wrote:
I am using access database to create a crystal report in VB.NET
Everything works fine when I run on my machine. But when I am
deploying it other windows machines. It is asking for database server
name and logon information. The problem which I understood from this
is that the path is hardcoded in the crystal report and the database
is in my bin folder. when I run my app on other machines it is looking
for the database in that folder and when it is not finding it, it is
prompting me to enter the database location.

Please help me how to get around this problem so that crystal report
can take database file from the application start up path rather than
hard-coding the path.

It is quite frustrating to know crystal reports hard codes the
database path

Nov 20 '05 #3
Thanks nina for your help.But I get the same database login error.
when i insert a report into a project, I create a standard report and
give the path of the database and there it is hardcoding the path.

I guess I will move to component one reporting tool and see whether it
works for me.
Thanks again

nina98765 <ni*******@disc ussions.microso ft.com> wrote in message news:<CB******* *************** ************@mi crosoft.com>...
You will need to set the database location in code. Here is sample:

Dim logOnInfo As New TableLogOnInfo

' Set the connection information
OdbcConnection1 .Open()
logOnInfo.Conne ctionInfo.Datab aseName = OdbcConnection1 .Database & ".mdb"
logOnInfo.Conne ctionInfo.Passw ord = "pwd"
OdbcConnection1 .Close()

' Apply connection info. to every table in the report
For Each tbl As Table In rpt.Database.Ta bles
tbl.ApplyLogOnI nfo(logOnInfo)
Next

"route_code r" wrote:
I am using access database to create a crystal report in VB.NET
Everything works fine when I run on my machine. But when I am
deploying it other windows machines. It is asking for database server
name and logon information. The problem which I understood from this
is that the path is hardcoded in the crystal report and the database
is in my bin folder. when I run my app on other machines it is looking
for the database in that folder and when it is not finding it, it is
prompting me to enter the database location.

Please help me how to get around this problem so that crystal report
can take database file from the application start up path rather than
hard-coding the path.

It is quite frustrating to know crystal reports hard codes the
database path

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3908
by: xtanto | last post by:
Hi All, We need to develope application & report that run on windows accessing Oracle on Linux. and we use Crystal Report as reporting tool. Can Crystal Report on windows access Oracle on Linux ?
0
1724
by: Sameer | last post by:
Hello I have a simple crystal report. Report is displayed using CrystalReportViewer control in a web form. It works fine. There is one problem with the database connection logic. Whenever I navigate thru' report pages, it creates a new (additional) database connection. Is there any solution to avoid this? The code is - ************************************************************* Private Sub Page_Init(ByVal sender As System.Object,...
6
13191
by: Chuck Yeager via DotNetMonster.com | last post by:
I think I am giong to die, this is driving us nuts. Here is the error we are getting when trying to use CrystalReportViewer: OS: XP SP1 and another machine XP SP2 (same errors) IDE: VS .NET 2003 ERROR MESSAGE -----------------------------------
0
1110
by: Gurmukh | last post by:
Hello, We are working with VB.net and crystal reports with sql server2000 as database,the problem is that when we open a report and export it via default utility in crystal reports it works fine but once we close that report and open report again it gives error on line where we load the report?? Gives error as loadsave reportexception: load report failed. If we reopen the application it works fine only once it doesn't open
2
5468
by: deegee | last post by:
hi, I'm trying to display a simple crystal report from within a web application but I keep getting prompted to enter login details for the database (oracle). Entering the correct information manually displays the report perfectly but there must be a way of passing the login details automatically?? How do I do it? There is currently no code in the page - I simply added a Crystal Report Viewer and set the report as required.
0
1143
by: thomasma57 | last post by:
How do you connect an ADO control to an access database that has a password set. Using Jet.OLEBD. mike
4
3205
by: MarkTingson | last post by:
Hi guys, Is there a way to prevent "Enter Parameter Values" message box to pop during VB6 program runtime?I have created a program in VB6 that uses a Crystal report control. When I put a .parameter syntax, a dialog box always appear that says "Enter Parameter Values" before the report. Pls, I know you can help me with this. Thank you so much!!
0
1014
by: Zuhaib Hyder | last post by:
i'm trying to configurer my dot net site on lcal IIS, which use ms access database while i try to access from other pc's, then database path error occurs, bcz my connection was trying to find database on local system, rather then go to my webserver virtual directory what will be the solution of it?
6
3251
by: praveenb000 | last post by:
we hosted a website http://vijayawadanalanda.org developed using asp.net and back end MS Accees database. There is some database connectivity problem occurring when saving the information in page url : http://vijayawadanalanda.org/feedback.aspx getting error: Not a valid file name. Please provide me solution to rectify this problem.
0
9473
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9259
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6750
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4569
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.