Reputation:
How can I disable Parameter Prompt in sub report at run time in Crystal Report XI? I used Ms VS 2005 and report also included. Other report features is the same Crystal Report features. Other report not show prompt at run time which are not included Sub report. Prompt appeared one is included sub report. so you may hv any suggestion. let me know pls. thanks.
Upvotes: 2
Views: 26837
Reputation: 119
Use following steps
REPORT1.Refresh()
REPORT1.SetParameterValue(0, "some default value") 'assign some default value
CrystalReportViewer1.ReportSource = REPORT1 'dynamically assigned report source
Upvotes: 0
Reputation: 1
I just solved it with something very simple, I don`t know if it works in every case but in my case it did.
Solution: Go to Properties of your CrystalReportViewer and set ReportSource=None
Upvotes: 0
Reputation: 1166
We had the same issue and resolved this by modifying our code that prints the report.
Instead of setting the ReportSource
of the CrystalReportViewer
before setting the report parameters, set it after you have added all the report and subreport parameters.
Upvotes: 0