troubleshooting Question

Crystal Reports for .NET not releasing control after printing

Avatar of lybreeze
lybreeze asked on
.NET ProgrammingASP.NETVisual Basic.NET
15 Comments1 Solution2201 ViewsLast Modified:
This is a weird problem that I need a fix for urgently - please.

I've got a VB.Net 2010 app and am using Crystal Reports .Net

When I print a report to the screen it works fine, and I can then print to the printer. So far so good.

I have a "close" button on the Crystal Reports Viewer form to allow users to return to the report control menu page.  This uses a Server.Transfer command.  If I click "close" having only printed to the screen then control is returned to the menu page.  But if I click "close" having printed to the printer then I cannot escape from the Viewer form.

Using breakpoints I can see that control is being passed to the menu page, but once the menu page's Page_Load code has been processed then the Viewer form is redisplayed.

It doesn't matter if the "close" button executes via an ASP PostBack or via an OnClick in VB.

I thought about testing for IsPostBack in the Viewer's Page_Init section in order to distinguish between the Close and Print buttons being clicked, although I'm not sure what good that would do even if it worked.

It seems that Crystal Reports is not being released once the printer function has been invoked.

Any ideas?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 15 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 15 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros