helderjsd
Member
- Joined
- Mar 29, 2010
- Messages
- 8
- Programming Experience
- 1-3
Hello.
I was made an application in VB.net 2008, and a report with Crystal Reports.
When I create the report, I have created i new connection in crystal reports design, for conect to my MDB.
My question, was the application can be installed in anywhere on the computer, and the CR loss the path for the right path to the MDB file.
Then, I wanna use the property application.startuppath for CR knows where the mdb was.
But.... Doing a test with another MDB in a fix directory, it doesn't work.
I us ethis code in the load event of my form:
Dim cryRpt As New CrystalReport1
Dim crConnectionInfo As New ConnectionInfo
With crConnectionInfo
.ServerName = "c:\tmp\abcdef.mdb"
.DatabaseName = "c:\tmp\abcdef.mdb"
End With
CrystalReportViewer1.ReportSource = cryRpt
CrystalReportViewer1.Refresh()
The CR never goes pick the data from my folder TMP. Allways use the static MDB define in the CR design
What can I do more????
I was made an application in VB.net 2008, and a report with Crystal Reports.
When I create the report, I have created i new connection in crystal reports design, for conect to my MDB.
My question, was the application can be installed in anywhere on the computer, and the CR loss the path for the right path to the MDB file.
Then, I wanna use the property application.startuppath for CR knows where the mdb was.
But.... Doing a test with another MDB in a fix directory, it doesn't work.
I us ethis code in the load event of my form:
Dim cryRpt As New CrystalReport1
Dim crConnectionInfo As New ConnectionInfo
With crConnectionInfo
.ServerName = "c:\tmp\abcdef.mdb"
.DatabaseName = "c:\tmp\abcdef.mdb"
End With
CrystalReportViewer1.ReportSource = cryRpt
CrystalReportViewer1.Refresh()
The CR never goes pick the data from my folder TMP. Allways use the static MDB define in the CR design
What can I do more????