Reporting Services 中目录的填充点

发布于 2024-08-27 19:28:29 字数 198 浏览 3 评论 0原文

有人有一种巧妙的方法可以在 RS 的目录页面中添加填充点吗?

如果使用比例字体,这不会成为问题。

例如

Monkey.........5
House..........1
Tree...........11
Underpants.....2

显然上面的例子很糟糕,因为字体是成比例的

Does anyone have a slick way of adding filler dots to a table of contents page in RS?

This would not be a problem were it using proportional fonts.

e.g.

Monkey.........5
House..........1
Tree...........11
Underpants.....2

Obviously the example above sucks as the font is proportional

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

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

发布评论

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

评论(3

画离情绘悲伤 2024-09-03 19:28:29

您可以使用 PlaceHolder 来完成此操作。

  1. 创建一个包含两列的表。
  2. 在右侧的栏中输入页码。
  3. 在左侧的栏中输入您的页面名称。
  4. 将光标放在页面名称的右侧并单击鼠标右键。
  5. 选择创建占位符。
  6. 输入Dots(或其他)作为标签。
  7. 单击值文本框旁边的函数按钮。
  8. 输入以下表达式:=StrDup(600, ".")
  9. 单击“确定”。
  10. 您最终应该得到这样的结果: Screen shot of a PlaceHolder
  11. 单击网格以松开焦点。
  12. 右键单击左列的下半部分。
  13. 选择文本框属性。
  14. 在“常规”->“大小调整选项”下,取消选择“允许增加高度”,然后
  15. 单击“确定”。

不要注意屏幕截图中的页码。我知道他们错了。

Screen Shot

You can do this using a PlaceHolder.

  1. Create a Table with two columns.
  2. In the column on the right put the page number.
  3. In the column on the left put in your page name.
  4. Place the cursor just to the right of the page name and right-click.
  5. Select Create Placeholder.
  6. Enter Dots (or whatever) for the Label.
  7. Click the Function button next to the Value textbox.
  8. Enter the following expression: =StrDup(600, ".")
  9. Click OK.
  10. You should end up with this: Screen shot of a PlaceHolder
  11. Click off of the grid to loose focus.
  12. Right-click the lower half of the left column.
  13. Select Text Box Properties.
  14. Under General->Sizing Options deselect Allow height to increase
  15. Click OK.

Pay no attention to the page numbers in the screen shot. I know they are wrong.

Screen Shot

千柳 2024-09-03 19:28:29

我不确定这是否有帮助,但由于您可以控制目录,而不是将其构建为单个字段,因此您是否可以选择将其设置为包含三列(标题、点,页码)?

虽然这会给你标题和点的开头之间留出空白,但这至少意味着填充的长度是一致的。

在这种情况下,您也可以将点生成为表格单元格内的图案线,而不是使用重复的字符。

I'm not sure whether this is helpful or not, but since you have control over the TOC, rather than building it as a single field, do you have the option to set it up as a table with three columns (the title, the dots, the page number)?

Whilst this would give you white-space between the title and the start of the dots, it would at least mean that the padding would be of a consistent length.

In this scenario, you could alternatively generate the dots as a patterned line inside the table cell, rather than with repeated characters.

夜雨飘雪 2024-09-03 19:28:29

这在 SQL Server Reporting Services 2008 中似乎不可能。

This does not appear to be possible in SQL Server Reporting Services 2008.

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