在SSRS中,你可以设置一个矩形随着它的内容而增长吗?

发布于 2024-07-09 03:23:04 字数 256 浏览 21 评论 0原文

我现在正在 SSRS(SQL Server Reporting Services)中处理报告,并且在报告设计器中在页面上绘制的矩形增长时遇到问题。 基本上,我绘制了一个矩形,然后在其中放置了一个文本字段。 该文本字段的内容可以很短也可以很长,因此我希望它能够增长以容纳其内容。

但是当我输入长文本时,文本框会变大,然后粘在矩形的线条之外。 从我读到的 SSRS 文档中,它说矩形应该增长以包含其中的项目,并且这些项目是“对等的”。

是什么赋予了?

I'm working on a report in SSRS (SQL Server Reporting Services) right now, and I'm having a problem getting a rectanlge I draw on the page in the report designer to grow. Basically, I've got a rectangle drawn, and then I put a text field inside of it. The contents of this text field can be either very short or very long, so I want it to grow to accomodate its contents.

But when I enter the long text, the textbox grows and then sticks outside of the lines of the rectangle. From the SSRS documentation I read, it says rectangles should grow to contain the items within them, and that those items are "peers".

What gives?

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

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

发布评论

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

评论(4

尐偏执 2024-07-16 03:23:04

我可以让文本框突破矩形边框的唯一方法是文本框实际上不在矩形内部,而是在矩形下方。

当文本框位于矩形内部且文本框属性 CanGrow = TRUE 时,文本框及其矩形都会垂直向下生长以容纳大量文本。

The only way I can get a textbox to breach the border of a rectangle is if the textbox is not actually inside the rectangle, but instead is underneath it.

When the textbox is inside the rectangle, and when the textbox property CanGrow = TRUE then the textbox and its rectangle both grow vertically downward to accommodate large amounts of text.

妄断弥空 2024-07-16 03:23:04

我看到了同样的问题。 我的问题是我先有文本框,然后将矩形放在它周围并将其发送到后面。 当我将文本框拖出然后再拖回矩形时,它就正常增长了。

I was seeing the same issue. My problem was that I had the text boxes first and then put the rectangle around it and sent it to the back. Once I dragged the text boxes off and then back onto the rectangle, it grew properly.

虫児飞 2024-07-16 03:23:04

您可以通过查看文本框的 Parent 属性来判断文本框是在矩形中还是在主体上(例如)。 如果文本框位于矩形之外,则最好剪切文本框并将其粘贴到矩形中。 当我尝试将对象拖动到矩形中时,有时会遇到问题。

You can tell whether the textbox is in the rectangle or on the body (e.g.) by looking at the Parent property of the textbox. If the textbox is outside of the rectangle, it works well to cut the textbox and paste it into the rectangle. I've had issues at times when trying to drag objects into (onto) a rectangle.

素染倾城色 2024-07-16 03:23:04

也许有点晚了 - 但它可能会帮助以后的人。

矩形可以作为容器。

要将矩形变成容器,请先创建矩形。 只需将其他子对象元素(例如列表、表格等)放入容器中即可。

但是,创建子对象后无法创建容器。

Maybe a little late - but it may help someone later.

The rectangle can serve as a container.

To turn the rectangle into a container, create the rectangle first. Just drop your other child-object elements (e.g. lists, tables, etc) into the container.

However, you cannot create the container after creating the child objects.

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