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); }