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.