开发者

Crystal report parameters aren't being prompted

I'm working on upgrading our application to use Crystal Reports 2008. (v12) Currently, we use Crystal Reports 2008 for Visual Studio. (v10.5 nice naming convention jerks)

Most of the time, our application supplies report parameters itself, using the id/name/whatever of the object the user is currently looking at. This is pretty normal. However, our users also need to be able to fire up reports directly and supply these parameters themselves. We are using the CrystalDecisions.Windows.Forms.CrystalReportViewer control to display the report.

With v10.5, a parameter selection wizard would appear, and all was well. Note the presence of the I开发者_StackOverflownvoiceNumber parameter.

Crystal report parameters aren't being prompted

(source: glompix.com)

However, when I run our reports against v12, some parameters aren't showing up. In this example, it's the InvoiceNumber parameter.

Crystal report parameters aren't being prompted

(source: glompix.com)

Our report writer says that there is a solution to this which involves changing every report. I'm unsure of the details. We have a lot of reports, so I was wondering if there is a solution that can be implemented at the time of report invocation. Is there an option, property, method, or something to have these missing parameters show up?


If the missing value is static you could try assigning the missing parameter values to the reports programmatically. This would save you the time of changing all reports. - Of course assuming that the missing parameters are not always different in each report... EDIT: Sorry, I think I misunderstood the question. If you need the missing parameter box to show up and this is an incompatibility issue there might not be other way but to change the reports. I would be curious though what the details are. (I mean what the report writer could change in the report to make it show)

EDIT: If the problem is caused by the presence of formulas in the report there might be a solution by assigning the missing values to ReportDocument.RecordSelectionFormula property.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜