cancel
Showing results for 
Search instead for 
Did you mean: 

Close current view icon is not working on Report preview

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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

Former Member
0 Kudos

Don,

I wonder if Saurabh is seeing the same issue I was here on SCN searching for.

I think he might mean literally "how to close the preview in Visual Studio."  I cannot find a way to close the preview.

I am using VS2013 Community on Win8.1 Pro.

Steve

Answers (0)