'宣言 Public Property PageFooterTemplate As DataTemplate
public DataTemplate PageFooterTemplate {get; set;}
注: このプロパティは、ReportBase の ReportBase.PageFooterTemplate 設定を優先させます。
Private Sub SetReportSettings() Dim reportObj As New Report() Dim section As New EmbeddedVisualReportSection(XamDataGrid1) reportObj.Sections.Add(section) ' set footer template for section only section.PageFooterTemplate = TryCast(Me.Resources("PagePresenterFooterTemplate"), DataTemplate) ' set footer data for section only section.PageFooter = "MyFooter" reportObj.Print(False) End Sub
private void SetReportSettings() { Report reportObj = new Report(); EmbeddedVisualReportSection section = new EmbeddedVisualReportSection(XamDataGrid1); reportObj.Sections.Add(section); // set footer template for section only reportObj.PageFooterTemplate = this.Resources["PagePresenterFooterTemplate"] as DataTemplate; // set footer data for section only reportObj.PageFooter = "MyFooter"; reportObj.Print(false); }