Torna al Thread
//Instanziamo la classe e creiamo un nuovo oggetto
TableLogOnInfo credentials=new TableLogOnInfo();
//Completiamo le proprietà con i nostri parametri per l'accesso a SQL
credentials.ConnectionInfo.DatabaseName="SISCO_TEST";
credentials.ConnectionInfo.UserID="sa";
credentials.ConnectionInfo.Password="";
credentials.ConnectionInfo.ServerName="192.168.1.3";
credentials.TableName="report";
//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("x.rpt");
// CrystalReportViewer1.ReportSource=Server.MapPath("crProva.rpt");
//creo una cartella con il codice utente collegato
Directory.CreateDirectory(Request.PhysicalApplicationPath+ @"Reports\\"+Session["utente"].ToString().Trim());