Visual Studio Report Designer: How do I print something on every second page of a report?

岁酱吖の 提交于 2019-12-04 10:06:07

Alas, as you already mention: you can't access the page number in the body of a report. 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
  • 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)

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!