954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Set runtime connection to the Access database for Crystal report

I have created a Cryatal Report and set its Access database(.mdb) during design time. I have imported the crystal report into VB.NET. now i want to know how can we set the database path during runtime. The database to which i've linked will change its path and name every year.

Kindly hepl me out

GowriJai
Newbie Poster
1 post since Aug 2007
Reputation Points: 10
Solved Threads: 0
 

How can filter the field in crystal report at run time in vb.net

gomathinayagam
Newbie Poster
17 posts since Nov 2008
Reputation Points: 8
Solved Threads: 1
 

I have created a Cryatal Report and set its Access database(.mdb) during design time. I have imported the crystal report into VB.NET. now i want to know how can we set the database path during runtime. The database to which i've linked will change its path and name every year.

Kindly hepl me out

hope it will help you :


Dim path1 As String = "your connection here" '" '' path
'' for normal ADO Concept
'' The current DataSource is an ADO

'' change path of the database
rpt.DataSourceConnections.Item(0). _
SetConnection("", "" & path1 & "", False)
'' if password is given then give the password
'' if not give it will ask at runtime
rpt.DataSourceConnections.Item(0).SetLogon("Admin", "")

kacebaza
Newbie Poster
2 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You