on 09-15-2014 10:34 AM
Hello
I am using visual studio 2012 crystal report viewer to preview the reports. To generate reports using crystal 2013 SP10 RAS api. When i preview the reports close current view icon only becomes active when a second (or more) tab is opened, such as when a subreport is clicked. It will never be enabled when the main report has focus.
This is different behavior from earlier crystal versions. Can we enable close button always and close the subsequent opened report on click of close button?
Hi Saurabh,
What previous version of CR runtime were you using?
To close the Main Report create a Close Report button and add this:
rpt.ReportClientDocument.Close();
crystalReportViewer1.ReportSource = null;
crystalReportViewer1.Refresh();
try
{
reportClientDocument.Close();
}
catch
{ }
There is no Close Click Event for the main report.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.