imparare a leggere anche il cs non fa male:
cmq:
codice:
Imports CrystalDecisions.Shared
Private Sub WebForm1_Init(ByVal sender as Object, ByVal e as System.EventArgs)
'Instanziamo la classe e creiamo un nuovo oggetto
Dim credentials as New TableLogOnInfo()
'Completiamo le proprietà con i nostri parametri per l'accesso a SQL
credentials.ConnectionInfo.DatabaseName="Northwind"
credentials.ConnectionInfo.UserID="sa"
credentials.ConnectionInfo.Password="sa"
credentials.ConnectionInfo.ServerName="DELL"
credentials.TableName="Quarterly_Orders"
'Aggiungiamo le credenziali al Report Viewer
CrystalReportViewer1.LogOnInfo.Add(credentials)
'Indichiamo al Report Viewer di caricare il Report creato (Report.rpt)
CrystalReportViewer1.ReportSource=Server.MapPath("Report.rpt");
End Sub
è bastato cambiare un paio di dichiarazioni di variabili e togliere tutti i ;