使报表查看器主体不可见?
Make report viewer body invisible?
我有一个报表查看器,我想让它的正文不可见,但头部除外,您可以在其中选择所需的格式。这是我的 ASP.NET
代码:
<rsweb:ReportViewer runat="server" ID="report" Font-Names="Calibri" Font-Size="12pt" WaitMessageFont-Names="Calibri" WaitMessageFont-Size="14pt" Width="383px" Height="30px">
<LocalReport ReportPath="ReportFatture.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource2" Name="DataSet2" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
有什么属性我可以用的吗?
在Page Load
中使用以下代码隐藏报表正文
report.ShowReportBody = false;
同样你可以像下面这样让它可见
report.ShowReportBody = true;
我有一个报表查看器,我想让它的正文不可见,但头部除外,您可以在其中选择所需的格式。这是我的 ASP.NET
代码:
<rsweb:ReportViewer runat="server" ID="report" Font-Names="Calibri" Font-Size="12pt" WaitMessageFont-Names="Calibri" WaitMessageFont-Size="14pt" Width="383px" Height="30px">
<LocalReport ReportPath="ReportFatture.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource2" Name="DataSet2" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
有什么属性我可以用的吗?
在Page Load
中使用以下代码隐藏报表正文
report.ShowReportBody = false;
同样你可以像下面这样让它可见
report.ShowReportBody = true;