在c#crystal报表中使用日期参数(仅限月份)

在c#crystal报表中使用日期参数(仅限月份),c#,crystal-reports,C#,Crystal Reports,如何将日期参数仅用于月份 我需要打印整个6月份的数据,我想按月份排序并打印,没有日期和年份 (在C#工作) thank’s prevent使用“字段浏览器”创建数值参数{?Month},其值为1-12和相应的描述(例如,1是一月) 接下来,创建一个记录选择公式,类似于: // calculate the beginning of the month and the last of month (add a month to the first day of the month, then su

如何将日期参数仅用于月份

我需要打印整个6月份的数据,我想按月份排序并打印,没有日期和年份

(在C#工作)


thank’s prevent

使用“字段浏览器”创建数值参数
{?Month}
,其值为1-12和相应的描述(例如,1是一月)

接下来,创建一个记录选择公式,类似于:

 // calculate the beginning of the month and the last of month (add a month to the first day of the month, then subtract a day)
{table.date} IN Date( Year(DataDate), {?Month}, 1) TO Date( DateAdd("m", 1, Date( Year(DataDate), {?Month}, 1)) - 1 )

我应该在“参数”字段下创建数字参数吗?如果我想按月份和所选年份对其进行排序如何?有可能吗?按年份排序?参数还是数据?