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.
问题:
回答1:
I solved it from this web site: http://www.it-sideways.com/2011/10/how-to-disable-parameter-prompt-for.html
回答2:
Take a look at this link.
Pass parameters to a stored procedure in a Crystal Report sub report?
Here are two other links that could prove helpful as well.
passing parameters in crystal report
http://www.tek-tips.com/faqs.cfm?fid=1329
回答3:
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.
回答4:
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
回答5:
Use following steps
- Don't use CrystalReportViewer1.RefreshReport or CrystalReportViewer1.Refresh
- Set Report source from properties to none
- Report source must be assigned Dynamically
- in your code have this sequence
REPORT1.Refresh() REPORT1.SetParameterValue(0, "some default value") 'assign some default value CrystalReportViewer1.ReportSource = REPORT1 'dynamically assigned report source