fbiggroup
Crash Log Analyst
2
MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1
200 XP
Recently I receive a comment on the database path error. This error occurs because the database location is not relative to the application path. In our example on How to Print Using Crystal Reports the base path for the application is located under the debug folder.
For the sake of this tutorial I move the database within the data folder relative to the debug folder to avoid any error.
In addition the following code has been added to call the database path.
Due to hectic schedule I cannot answer all questions which require too much time to debug and or modify the program.
Crystal Reports
For the sake of this tutorial I move the database within the data folder relative to the debug folder to avoid any error.
In addition the following code has been added to call the database path.
- Dim
tbCurrent As
CrystalDecisions.
CrystalReports
.
Engine
.
Table
- Dim
tliCurrent As
CrystalDecisions.
Shared
.
TableLogOnInfo
- For
Each
tbCurrent In
mReport.
Database
.
Tables
- tliCurrent =
tbCurrent.
LogOnInfo
- With
tliCurrent.
ConnectionInfo
- .
ServerName
=
Application.
StartupPath
&
"\Data\Data.mdb"
- .
UserID
=
""
- .
Password
=
""
- .
DatabaseName
=
Application.
StartupPath
&
"\Data\Data.mdb"
- End
With
- tbCurrent.
ApplyLogOnInfo
(
tliCurrent)
- Next
tbCurrent
Due to hectic schedule I cannot answer all questions which require too much time to debug and or modify the program.
Crystal Reports