Running multiple instances of single parameter report at once

大憨熊 提交于 2019-12-13 06:21:13

问题


I have a report that takes one parameter (an order no) and creates a document for that order, pulling in some address fields, etc.

My customers want the ability to select multiple order numbers at once and print out say 10 different sheets, one for each order. everything would be the same on each sheet, save for the order specific information.

my problem is that currently, toggling the parameter to accept multiple values jams all the information for all 10 orders into the same place on one instance of the report. Is there a way around this?

Please let me know any and all further clarification or examples you need.


回答1:


Use a sub-report to run the same report multiple times with different parameters.

  • Create a new report with a multi-value parameter for the order #'s.
  • Add a tablix that uses the multi-value parameter to display each order #.
  • Replace the field that displays the order # with a sub-report.
  • Wire-up the sub-report to point to your original report and pass in the order #.

To make sure each report prints on a different page:

  • Group by order # in the tablix (shouldn't change the tablix output if each order # is unique)
  • Right click the Row Group and select "Group Properties"
  • Choose "Page Breaks" and check the box "Between each instance of a group"


来源:https://stackoverflow.com/questions/35048661/running-multiple-instances-of-single-parameter-report-at-once

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