注: このプロパティは、ReportBase の ReportBase.PagePresenterStyle 設定を優先させます。
Private Sub SetPresenterStyle() Dim reportObj As New Report() Dim section As New EmbeddedVisualReportSection(XamDataGrid1) ' apply keyed style to page layout section.PagePresenterStyle = TryCast(root.TryFindResource("PagePresenterStyle"), Style) reportObj.Sections.Add(section) reportObj.Print(False) End Sub
private void SetPresenterStyle() { Report reportObj = new Report(); EmbeddedVisualReportSection section = new EmbeddedVisualReportSection(XamDataGrid1); // apply keyed style to page layout section.PagePresenterStyle = root.TryFindResource("PagePresenterStyle") as Style; reportObj.Sections.Add(section); reportObj.Print(false); }