简体   繁体   English

Visual Studio报表设计器:如何在报表的第二页上打印内容?

[英]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: 到目前为止,我可以看到的唯一选择(您可能已经考虑过),从坏到坏的顺序是:

  • Print the note entirely in the header or footer 完全在页眉或页脚中打印注释
  • Print it on every page 在每一页上打印
  • Post-process the rendered report (PDF?) and add it afterwards 对呈现的报告进行后处理(PDF?),然后添加
  • Do the report twice. 做两次报告。 Once with the notice on each page, once without. 一次带有通知在每页上,一次没有。 Do your own "duplexing": print the odd pages from the document without, put the paper back in the printer, and print the even pages. 自己进行“双面打印”:不打印文档中的奇数页,将纸张放回打印机中,然后打印偶数页。

(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.

相关问题 在Visual Studio报表设计器中显示布尔字段 - Display Boolean Field in Visual Studio Report Designer 如何在 SSRS 2005 报告的每一页上放置超链接? - How do I place a hyperlink on every page of a SSRS 2005 report? 如何在报告首页以外的所有页面上重复页面标题? - How do I repeat page header on every page except the first page of a report? SSRS报表的SQL查询Visual Studio查询设计器 - SQL Query for SSRS Report Visual Studio Query Designer Visual Studio 2015升级后,如何打开VS 2005报表项目? - After Visual Studio 2015 upgrade, how do I open VS 2005 report projects? 如何在Crystal Reports for Visual Studio中使用动态列来实现透视报表? - How do I achieve a pivot report with a dynamic columns in Crystal Reports for Visual Studio? 我如何在每个报告页面中重新使用TextBox? - How can I Reapeat TextBox in every report page? 每次运行报告时如何执行存储过程? - How do I execute a stored procedure every time a report is run? 如何传递参数TO SSRS报告FROM ASP.NET页面,其中包含报告的reportviewer - How do I pass parameter TO SSRS report FROM ASP.NET page which has the reportviewer for the report 如何为报表设计者提供新字段? - How can I make new fields available to the report designer?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM