gpt4 book ai didi

reporting-services - 在SSRS中复制并粘贴表格(tablix)

转载 作者:行者123 更新时间:2023-12-03 09:06:27 26 4
gpt4 key购买 nike

我有一个Tablix,其中有一天的数据,我需要在底部有相同的数据,但要在3条不同的行中。我想在底部复制3天的主要日表,然后为每个表使用不同的数据集。

我尝试复制tablix并将其粘贴到tablix下的Body中,但是出现以下错误:

Report Builder was unable to paste successfully.



如何完成复制和粘贴?还是如果不可能,还有另一种方法可以做我想完成的事情吗?

这是一个动画截图:

最佳答案

您可能会收到错误消息Report Builder was unable to paste successfully,因为网格中的某个地方有一个使用报告中的自定义代码的单元格

i.e. you cannot copy a textbox with this custom code: “Code.MyCustomeCode()”
- Report Builder was unable to paste successfully



自SSRS 2008以来,这是一个已报告的错误:

When using Visual Studio 2008 to create new reports, we cannot copy and paste multiple textboxes in a tablix, and receive a popup error stating "Report Builder was unable to paste successfully"
- Unable to copy and paste textboxes in SSRS reports with Custom Code after 2008 R2 SP2 upgrade



解决方法:
  • 在Visual Studio中,通过右键单击报表并选择“查看代码”,或在任何文本编辑器中进行编辑,打开报表的XML View 。
  • 注释掉Code. 块。 Ctrl + F在文档中查找Code.的方式。目的是以某种方式保留代码,同时暂时注释掉该行。根据您的实际代码,这可能有所不同,但是我这里是我想做的:
  • 查找:=Code.
  • 替换为:='Code.
  • 返回到Designer View ,并复制并粘贴Tablix 。您可以通过右键单击tablix控件的左上角来执行此操作:
  • 返回XML View ,然后反转查找并替换
  • 查找:='Code.
  • 替换为:=Code.

  • 你应该准备好了!

    Note: You cannot just copy the <tablix> block in the XML view after step 1 because it will create elements with the same exact name property

    关于reporting-services - 在SSRS中复制并粘贴表格(tablix),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25252424/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com