SSRS2008需要手动调整代码又一例

SSRS(Reporting Service)中有些特性的调整,在设计界面不容易找到或根本找不到, 这时就需要切换到代码(Code)界面进行调整。

今天在删除一个Group时, 调试报表出现如下错误:

[rsInvalidToggleItem] The tablix ‘table1’ has ‘TestStation’ as a toggle item.  Toggle items must be text boxes that share the same scope as the hidden item or are in a scope that contains the hidden item, and cannot be contained within the current report item unless current grouping scope has a Parent.
Build complete -- 1 errors, 0 warnings

右键相关rdl文件, 选“View Code”, 在
              <TablixMembers>
                <TablixMember>
                  <Group Name="table1_Details_Group">
                    <DataElementName>Detail</DataElementName>
                  </Group>
                  <TablixMembers>
                    <TablixMember />
                  </TablixMembers>
                  <DataElementName>Detail_Collection</DataElementName>
                  <DataElementOutput>Output</DataElementOutput>
                  <KeepTogether>true</KeepTogether>
                </TablixMember>
              </TablixMembers>

下面找到如下字段:

              <Visibility>
                <Hidden>true</Hidden>
                <ToggleItem>TestStation</ToggleItem>
              </Visibility>

删除后, 问题解决。

猜你喜欢

转载自blog.csdn.net/cdwolfling/article/details/5418597