|
-
Sep 27th, 2007, 03:05 AM
#1
Thread Starter
New Member
-
Sep 27th, 2007, 03:08 AM
#2
Thread Starter
New Member
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
-
Sep 27th, 2007, 01:03 PM
#3
Thread Starter
New Member
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
-
Oct 2nd, 2007, 08:02 AM
#4
Thread Starter
New Member
Re: CR XI login problem
ı solved this problem like this do not get the data from db get it from dataset
good luck....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|