'宣言 Public Overloads Sub Print( _ ByVal showPrintDialog As Boolean, _ ByVal showReportProgressControl As Boolean, _ ByVal reportProgressControlOwnedElement As FrameworkElement _ )
public void Print( bool showPrintDialog, bool showReportProgressControl, FrameworkElement reportProgressControlOwnedElement )
例外 | 解説 |
---|---|
System.InvalidOperationException | セクションのないレポートをエクスポートまたは印刷しようとすると例外がスローされます。 |
Private Sub ExportReport() Dim reportObj As Report = New Report() Dim section As EmbeddedVisualReportSection = New EmbeddedVisualReportSection(XamDataGrid1) reportObj.Sections.Add(section) ' Call export method and put to it file to export without SaveFileDialog reportObj.Export(OutputFormat.XPS, "C:\\export.xps", False) End Sub
private void ExportReport() { Report reportObj = new Report(); EmbeddedVisualReportSection section = new EmbeddedVisualReportSection(XamDataGrid1); reportObj.Sections.Add(section); // Call export method and put to it file to export without SaveFileDialog reportObj.Export(OutputFormat.XPS, "C:\\export.xps", false); }