Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Printing with CRViewer print button freezes the ASP.NET page

$
0
0

Hello,

 

Using IE8, with a VS2010 project and the CR for VS2010 SP1.

 

My page loads fine and the report viewer loads the report perfectly.  If I choose to go to a different page, refresh, search, go to the next page, ect. everything works fine...  EXCEPT the print button.

 

After the report is created and displayed I click on the CRViewer toolbar print button. The print dialog displays and I can print normally but after printing the report is unresponsive. It takes a Ctrl +F5 refresh to bring the application back.

 

All other buttons, export, refresh, GroupTree all work normally and do not effect the report. It is only the print button that makes the report unresponsive.

 

I changed the print mode to "ActiveX" in VS2010 and this fixes the problem for most people. Sadly, I need the print to PDf to work since some of our thin clients do not allow ActiveX due to security restrictions.

 

I am working with the most up-to-date version of CR, I believe that is version 13.0.2000.0 or the 13.0.1.220. My code for creating the report is in the "Page_Init" function.

 

The only visible error is thrown by IE when the page finishes loading, it says done with errors. The error is "Can't move focus to the control because it is ivisible, not enabled, or of a type that does not accept focus." When I run the application and click the print button on the CRViewer toolbar Fiddler2 shows it launching "application/pdf" but nothing happens after that even after a successful print.

 

The main problem is that the Response.Redirect is throwing the exception "Response is not available in this context." with a type of 'System.Web.HttpException'....

Thank you,

 

Kaempf

 

Edited by: ASKaempf on Jul 13, 2011 3:47 PM


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>