public void Export( OutputFormat outputFormat, Stream stream )
'宣言 Public Overloads Sub Export( _ ByVal outputFormat As OutputFormat, _ ByVal stream As Stream _ )
ストリームが Null の場合、Export(OutputFormat) を呼び出す結果と同じです。
Private Sub ExportReport() Dim reportObj As New Report() Dim section As New EmbeddedVisualReportSection(XamDataGrid1) reportObj.Sections.Add(section) ' Create stream and call export method Using fs As New FileStream("C:\export.xps", FileMode.Create) reportObj.Export(OutputFormat.XPS, fs) End Using End Sub
private void ExportReport() { Report reportObj = new Report(); EmbeddedVisualReportSection section = new EmbeddedVisualReportSection(XamDataGrid1); reportObj.Sections.Add(section); // Create stream and call export method using (FileStream fs = new FileStream("C:\\export.xps", FileMode.Create)) { reportObj.Export(OutputFormat.XPS, fs); } }
Report クラス Report メンバ オーバーロード一覧 Export(OutputFormat) メソッド Export(OutputFormat,String,Boolean) メソッド Print メソッド ShowPrintDialog メソッド GeneratePreview メソッド