简体   繁体   English

SSRS 2005将DataSet中的特定行作为参数传递?

[英]SSRS 2005 pass specific row from DataSet as Parameter?

I have a DataSet that looks like this 我有一个看起来像这样的数据集

Food    Category
------  ---------
Apples  Fruit
Peas    Vegetable
Cake    Dessert

What I want to be able to do is pass Category as a parameter via row. 我想要做的是通过行将Category作为参数传递。 I know how to pass Parameters just not sure how to get row value X. The reason for this is because I need to make a letter headers which addressees on the opposite side of the page and can go from 1 - 6 people. 我知道如何传递参数,只是不确定如何获取行值X。这样做的原因是因为我需要制作一个信头,该信头位于页面的对面,并且可以容纳1-6个人。

In this example how would I pass Vegetable as the parameter? 在此示例中,如何将蔬菜作为参数传递?

results are dynamic and can vary from 1-6 rows, and the problem is I have to place the results strategically on the report, so I need to say some how row 2 Category value and pass to a sub report. 结果是动态的,并且可能在1-6行之间变化,问题是我必须从战略上将结果放置在报表上,因此我需要说一下第2行Category值如何传递到子报表。

I have no clue whats not clear here but let me try this, I want to pass row 2 in this example and in this example it's Peas|Vegetable all this is is a sample from a DataSet. 我不知道这里有什么不清楚的地方,但是让我尝试一下,在这个示例中我想传递第2行,在这个示例中是Peas | Vegetable,所有这些都是来自DataSet的示例。

Thanks! 谢谢!

听起来好像您想在主报表中添加子报表-您可以在此处找到有关如何执行操作的详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM