-
CR XI login problem
Hi,
Is there anyone who knows how can I open my crystal reports in deployment pc?It works fine on mine.But when I deploying it on my boss's pc a pop up appear which has my connection path(C:\Users\Selenimo\Documents\Visual Studio 2005\Projects\doktor\doktor\bin\Debug\doktor.mdb) ,server (C:\Users\ Selenimo\Documents\Visual Studio 2005\Projects \doktor\ doktor\ bin\Debug\ doktor.mdb) those are same and asking for password and login name but there is no password for my mdb.I try ID:Admin and psw:(null) but it did not work. pleas help me about that problem ?? I cant pass the pop up window and the rapor window still inactive because of this :(
-
Re: CR XI login problem
I use this code under the report form
Dim parametre As CrystalDecisions.Shared.ParameterValues
Dim deger As CrystalDecisions.Shared.ParameterDiscreteValue
Dim tedavikarti As tedavikarti
Dim crtableLogoninfos As New TableLogOnInfos()
Dim crtableLogoninfo As New TableLogOnInfo()
Dim crConnectionInfo As New ConnectionInfo()
Dim CrTables As Tables
Dim CrTable As Table
Dim crReportDocument As New tedavikarti()
With crConnectionInfo
.ServerName = "Isthost"
.DatabaseName = Application.StartupPath & "doktor.mdb"
End With
CrTables = crReportDocument.Database.Tables
For Each CrTable In CrTables
crtableLogoninfo = CrTable.LogOnInfo
crtableLogoninfo.ConnectionInfo = crConnectionInfo
CrTable.ApplyLogOnInfo(crtableLogoninfo)
parametre = New CrystalDecisions.Shared.ParameterValues
deger = New CrystalDecisions.Shared.ParameterDiscreteValue
deger.Value = frmtani.adsoyad
parametre.Add(deger)
tedavikarti = New tedavikarti
tedavikarti.DataDefinition.ParameterFields(0).ApplyCurrentValues(parametre)
CrystalReportViewer1.ReportSource = tedavikarti
Next
End Sub
End Class
tedavikarti : is my crystal reports name
deger : is my parameter to call reports
adsoyad : is my query field
-
Re: CR XI login problem
no one can solve this problem I think :(
Is there anyone who can suggest sth I gonna lost my hope :(
-
Re: CR XI login problem
ı solved this problem like this do not get the data from db get it from dataset
good luck....