我在SSRS 2008中创建了一个简单的报告。我开始复制现有的报告定义并对其进行了修改以适合我的需要。我正在ASP.NET MVC项目的C#中使用Visual Studio Ultimate 2012。矩形中的SSRS图像/ texboxes不显示
我有两个矩形,矩形1和矩形2。 Rectangle1来自原始报告并且显示得很好,我只是重新排列了其中的ReportItems。但是,Rectangle2并未显示在生成的报告上。我在设计师中创建了它,并将现有图像剪切/粘贴到其中。除了外部图像外,Rectangle2还包含一个带有静态值的文本框。
这是我已经试过:
- 验证了我的数据,获得通过并是正确的。
- 验证了所有相关的表达式。
- 验证我要求的图像存在。
- 删除了收缩/增长参数。
- 验证没有设置条件显示要求。
- 创建了一个全新的带有文本框和图像的矩形(不显示)。
- 比较了Rectangle1和Rectangle2之间的XML。
- 比较了Rectangle1和 Rectangle2之间的参数值(在设计器中)以及它们的所有子元素。
- 调整后的Z指数参数。
我在网上找不到任何相关信息。无处不在。纳达。压缩。我没有想法。
请指点我正确的方向。
下面是一些XML:
<Rectangle Name="Rectangle1">
<ReportItems>
<Image Name="GHS_1">
<Source>External</Source>
<Value>="file:///" + Parameters!AppPath.Value + Parameters!GHSPictograms.Value(0)</Value>
<MIMEType>image/png</MIMEType>
<Sizing>FitProportional</Sizing>
<Top>0.45312in</Top>
<Left>0.17958in</Left>
<Height>1.56in</Height>
<Width>1.56in</Width>
<Visibility>
<Hidden>=Parameters!GHSPictograms.Value(0) = ""</Hidden>
</Visibility>
<Style>
<Border>
<Style>None</Style>
</Border>
</Style>
</Image>
<Textbox Name="Textbox1">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value xml:space="preserve"> </Value>
<Style />
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox1</rd:DefaultName>
<Top>2.0521in</Top>
<Left>3.91688in</Left>
<Height>0.25in</Height>
<Width>0.05208in</Width>
<ZIndex>4</ZIndex>
<Style>
<Border>
<Style>None</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</ReportItems>
<KeepTogether>true</KeepTogether>
<Top>0.84944in</Top>
<Height>6.84897in</Height>
<Width>3.96896in</Width>
<ZIndex>2</ZIndex>
<Style>
<Border>
<Style>None</Style>
</Border>
</Style>
</Rectangle>
...
<Rectangle Name="Rectangle2">
<ReportItems>
<Image Name="PPE0">
<Source>External</Source>
<Value>="File:///" + Parameters!AppPath.Value + Parameters!PPEImages.Value(0)</Value>
<MIMEType>image/png</MIMEType>
<Sizing>FitProportional</Sizing>
<Top>0.45312in</Top>
<Height>1in</Height>
<Width>1in</Width>
<Visibility>
<Hidden>=Parameters!PPEImages.Count < 1</Hidden>
</Visibility>
<Style>
<Border>
<Style>None</Style>
</Border>
</Style>
</Image>
<Textbox Name="Textbox2">
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>PPE</Value>
<Style>
<FontSize>12pt</FontSize>
<FontWeight>Bold</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox2</rd:DefaultName>
<Height>0.33333in</Height>
<Width>1in</Width>
<ZIndex>5</ZIndex>
<Style>
<Border>
<Style>None</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</ReportItems>
<KeepTogether>true</KeepTogether>
<Top>0.84944in</Top>
<Left>4.0384in</Left>
<Height>1.45312in</Height>
<Width>5.60125in</Width>
<ZIndex>5</ZIndex>
<Style>
<Border>
<Style>None</Style>
</Border>
</Style>
</Rectangle>
UPDATE:我们设法让Rectangle2显示在Rectangle1的用z-index玩弄周围的代价。所以这是有多个矩形的一个问题...
注:我可以通过将所有内容嵌套在一个大的矩形中来绕过这个问题。 SSRS不喜欢多个矩形作为Body的即时ReportItems。 – kozmi