【问题标题】:RDLC file DataSet and Overlapping error messagesRDLC 文件数据集和重叠错误消息
【发布时间】:2011-05-20 14:39:26
【问题描述】:

我正在 asp.net 中处理 RDLC 报告。 我的报告有一个数据源。它工作得很好。 但是现在我更改了它并为其分配了另一个数据源。 这是代码:

<rsweb:ReportViewer ID="rptAdmissionNote" runat="server" Font-Names="Verdana" 
        Font-Size="8pt" Height="100%" Width="100%" 
        InteractiveDeviceInfos="(Collection)" WaitMessageFont-Names="Verdana" 
        WaitMessageFont-Size="14pt">
        <LocalReport ReportPath="Reports\Admission\rptAdmissionNoteReport.rdlc">
            <DataSources>
                <rsweb:ReportDataSource DataSourceId="odsAdmission" Name="DSAdmission" />
                <rsweb:ReportDataSource DataSourceId="odsInitialService" Name="DSInitialService" />
            </DataSources>
        </LocalReport>
    </rsweb:ReportViewer>

    <asp:ObjectDataSource ID="odsAdmission" runat="server" 
        OldValuesParameterFormatString="original_{0}" 
        SelectMethod="SelectAdmissionForReport" 
        TypeName="PrecisionCareBLL.AdmissionBLL.AdmissionLogic">
        <SelectParameters>
            <asp:QueryStringParameter Name="admissionId" QueryStringField="Id" 
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>  

    <asp:ObjectDataSource ID="odsInitialService" runat="server" 
        OldValuesParameterFormatString="original_{0}" 
        SelectMethod="SelectAdmissionForReport" 
        TypeName="PrecisionCareBLL.AdmissionBLL.AdmissionLogic">
        <SelectParameters>
            <asp:QueryStringParameter Name="admissionId" QueryStringField="Id" 
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>

它仍然运行良好并且项目成功构建。 但是当我在 RDLC 文件中添加另一个数据集时,我收到了这些错误:

Error   27  The rectangle ‘rectAdmission’ and the rectangle ‘rectServicePlanDue’ overlap. Overlapping report items are not supported in all renderers.  

还有很多这样的错误。 为什么它以前工作正常,现在发生了什么? 当我从 RDLC 文件中删除新添加的数据集时,它又可以正常工作了。

请谁能告诉我这背后的原因?

谢谢。

【问题讨论】:

    标签: asp.net dataset datasource rdlc


    【解决方案1】:

    打开 rdlc 文件.. 转到报告菜单 -> 数据源。选择您新添加的数据源,然后按“删除”按钮,然后单击“确定”。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-13
      • 2017-05-07
      • 2021-10-12
      • 1970-01-01
      • 1970-01-01
      • 2017-07-27
      相关资源
      最近更新 更多