Private Sub SetReportProgress() Dim reportObj As New Report() Dim section As New EmbeddedVisualReportSection(XamDataGrid1) reportObj.Sections.Add(section) ' Set ReportProgressControl's Report property to created report progressInfo.Report = reportObj reportObj.Print(True, True) End Sub
private void SetReportProgress() { Report reportObj = new Report(); EmbeddedVisualReportSection section = new EmbeddedVisualReportSection(XamDataGrid1); reportObj.Sections.Add(section); // Set ReportProgressControl's Report property to created report progressInfo.Report = reportObj; reportObj.Print(true, true); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2