How can I disable Parameter Prompt at run time in

2019-05-28 09:50发布

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.

5条回答
时光不老,我们不散
3楼-- · 2019-05-28 10:15

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

查看更多
姐就是有狂的资本
4楼-- · 2019-05-28 10:17

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.

查看更多
在下西门庆
5楼-- · 2019-05-28 10:17

Use following steps

  1. Don't use CrystalReportViewer1.RefreshReport or CrystalReportViewer1.Refresh
  2. Set Report source from properties to none
  3. Report source must be assigned Dynamically
  4. 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
查看更多
登录 后发表回答