[英]Visual Studio Report Designer: How do I print something on every second page of a report?
I have a report in Visual Studio Report Designer that prints a contract. 我在Visual Studio报表设计器中有一个可打印合同的报表。 I want it to have certain terms and conditions on the back of every page. 我希望它在每页的背面都有特定的条款和条件。 How can I print something on every second page (which I'll then duplex)? 如何在第二页上打印某些内容(然后我将进行双面打印)? I've tried putting it in the page header\\footer (it just gets cut off), and I've tried controlling the visibility of it in the body of the report using page numbers (but you can't use the global page numbers variable in the body of the report). 我尝试将其放置在页面页眉\\页脚中(只是被切断),并且尝试使用页码来控制它在报表正文中的可见性(但是您不能使用全局页码报表正文中的变量)。 How can I wrangle the report to do what I want? 如何整理报告以执行我想要的?
Alas, as you already mention: you can't access the page number in the body of a report. las,正如您已经提到的:您无法访问报表正文中的页码 。 I don't think your requirement can be satisfied, there's no real workaround that I know of. 我认为您的要求无法满足,我知道没有真正的解决方法。 The only alternatives (which you may have already considered) I can see so far, ordered from bad to progressively worse: 到目前为止,我可以看到的唯一选择(您可能已经考虑过),从坏到坏的顺序是:
(Like I said, the workarounds were progressively worse from top to bottom :D) (就像我说的那样,解决方法从上到下逐渐恶化:D)
In the extreme case where you know exactly what content ends up on what page number you could link a visibility expression to that content. 在极端情况下,如果您确切知道什么内容最终出现在哪个页码上,则可以将可见性表达式链接到该内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.