Crystal Reports: Runtime

// Assign to CrystalReportViewer crystalReportViewer1.ReportSource = report;

using CrystalDecisions.CrystalReports.Engine; using CrystalDecisions.Shared; // Load the report ReportDocument report = new ReportDocument(); report.Load(@"C:\Reports\MyReport.rpt"); crystal reports runtime

Here’s a showing how to load and set a database connection for a Crystal Reports report at runtime in a .NET application (C#): // Assign to CrystalReportViewer crystalReportViewer1

// Apply to all tables foreach (CrystalDecisions.CrystalReports.Engine.Table table in report.Database.Tables) { TableLogOnInfo logOnInfo = table.LogOnInfo; logOnInfo.ConnectionInfo = connInfo; table.ApplyLogOnInfo(logOnInfo); } logOnInfo.ConnectionInfo = connInfo

Buy-Online

 
icon label

Buy Danfoss Industrial & Marine through our Buy-Online website:

crystal reports runtime

Product Types

 
icon label