Hi,
How can I change the database location in my report?
I tried this:
But I couldn't use that because my Visual Studio doesn't recognize "Table"
Then I tried this:
But then I get this error: "Error in ....rpt Invalid table number."
Any Help?
How can I change the database location in my report?
I tried this:
VB.NET:
Dim rpt As New CrystalReport1
For Each crTable As Table In rpt.Database.Tables
crTable.Location = Directory.GetCurrentDirectory & "\database.mdb"
Next
Then I tried this:
VB.NET:
Dim rpt As New rptRapport
Dim path As String
path = GetDirectoryName(Application.ExecutablePath)
For i As Integer = 0 To rpt.Database.Tables.Count
rpt.Database.Tables(i).Location = path & "\kookboek.mdb"
Next
Any Help?