Torna al Thread
CrystalDecisions.CrystalReports.Engine.ReportDocument report = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
report.Load(Environment.CurrentDirectory + "\\StampaTemperatura.rpt");
CrystalDecisions.Shared.TableLogOnInfo logOnInfo = new CrystalDecisions.Shared.TableLogOnInfo();
logOnInfo.ConnectionInfo.ServerName = Environment.CurrentDirectory + "\\StampaDati.xml";
report.Database.Tables[0].ApplyLogOnInfo(logOnInfo);
crystalReportViewer1.ReportSource = report;
crystalReportViewer1.RefreshReport();