ReportViewer 文本框意外移动

发布于 2024-09-27 20:41:14 字数 398 浏览 8 评论 0原文

我在工作中使用 ReportViewer,但遇到了无法解决的问题。这个特定的报告有一个部分,其可见性是通过检查字段来确定的:

=IIf(Fields!TRREQUEST_BK_STATUS_CD.Value.ToString() <> "DELETE", True, False)

但这不是问题发生的地方。此部分上方有两组文本框。一组使用 TRREQUEST_BK_STATUS_CD 并显示 DELETE 或 APPRVD,另一组显示图书 ID。发生的奇怪的事情是,在 APPRVD 报告中,右侧的任何一组文本框都会向左移动几个凹口。在删除报告中,它保留在它应该在的位置。

在所有其他报告中,我们没有遇到任何此类问题。这就是为什么我假设 IIf 语句存在一些奇怪的错误。有什么想法吗?

I'm using ReportViewer at my work and I've run into a problem I can't solve. This particular report is one that has a section that's visibility is determined by checking a field:

=IIf(Fields!TRREQUEST_BK_STATUS_CD.Value.ToString() <> "DELETE", True, False)

This isn't where the problem is happening though. Above this section, there are two sets of textboxes. One that uses the TRREQUEST_BK_STATUS_CD and displays either DELETE or APPRVD, and another set that displays a book ID. The weird thing that's happening, is that which ever set of textboxes are on the right hand side get shifted to the left a few notches on an APPRVD report. On the DELETE reports it remains where it's supposed to be.

In all the other reports, we haven't had any problems like this. That's why I'm assuming it's some weird bug with the IIf statement. Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

缺⑴份安定 2024-10-04 20:41:14

我的猜测是看看你的表达看起来很合理,这是一个布局问题而不是代码问题。

尝试将宽度设置为比文本框中当前的宽度稍宽,并尝试将左侧和右侧的项目的高度/位置对齐(必须手动而不是拖动它们),因为渲染必须使用布局结构来定位你的物品。

是 WebForms 还是 WinForms?

My guess would be looking at your expression which looks reasonable, that its a layout issue rather than code.

Try setting widths a little wider than they are currently on the textboxes and try lining up the heights/locations (will have to be manual rather than dragging them around) of items on the left and right as the rendering has to use layout structures to position your items.

Is it WebForms or WinForms?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文