Buongiorno
ho questa pagina aspx che mi serve per caricare i report creati con crystal report:
lato vb questo è il codice:
Dim data As Date
data = CDate(Request.QueryString("data"))
reportname = "report/listapresenti.rpt"
Dim credentials As New TableLogOnInfo()
'Completiamo le proprietà con i nostri parametri per l'accesso a SQL
credentials.ConnectionInfo.DatabaseName = "reception"
credentials.ConnectionInfo.UserID = "sa"
credentials.ConnectionInfo.Password = "trinity"
credentials.ConnectionInfo.ServerName = "localhost"
'Aggiungiamo le credenziali al Report Viewer
CrystalReportViewer1.LogOnInfo.Add(credentials)
report = New ReportDocument
report.Load(Server.MapPath(reportname), OpenReportMethod.OpenReportByDefault)
report.SetDataSource(readprint.GetPresenzeDettaglio(Session("idstruttura"), data))
report.SetParameterValue("data", data)
report.SetParameterValue("struttura", "prova")
CrystalReportViewer1.ReportSource = report
appena lo apro con explorer mi esce l'errore che ho allegato come immagine.
Come mai?
Ps se tolgo i parametri la stampa funziona correttamente1920x1080
459Kb
Cirillo Fabio
www.trycontact.com
www.wondernet.biz
fabio@wondernet.biz
http://blogs.dotnethell.it/fabiocirillo/
http://wnetsoftware.blogspot.com