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();
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5