cancel
Showing results for 
Search instead for 
Did you mean: 

Print Dialog does not close when ReportViewer window is closed

Former Member
0 Kudos

A bug that my QC team has sent my way is a corner case where they open up a report (which our application generates as a separate window), click on the print icon to bring up the printing dialog, and then close the reportviewer window. The print dialog window persists. Is this a known issue with the CR engine? If I have to handle it myself, how does the print dialog window get generated by the CR engine? I need to know how to navigate to it from the reportviewer window's OnClosing event handler.

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Hello Steve

This is not a known issue.

I am assuming this is a win app?

What version of CR?

What version of .NET?

Can you duplicate the issue on your development computer?

- Ludek

Former Member
0 Kudos

Yes. It's a windows WPF app.

We're using CR version 13.03.612

.NET version 4

And yes, I was able to duplicate the issue on my development box.

former_member183750
Active Contributor
0 Kudos

Steve, once I click on the Print button and the print dialog comes up, I can't even go back to the viewer. It simply does not let me and just kind of blinks on / off. E.g.; I am not able to close the viewer at all(?). The only way for me to close the viewer is to either OK, or Cancel the Print dialog.

??

- Ludek

Former Member
0 Kudos

We have a main WPF window that opens up a second window with the ReportViewer item. When I click on the print button in the ReportViewer, the print dialog window seems to be created as a child of the WPF window, not the ReportViewer window. And yes, the print dialog is modal with regards to the main WPF window, but I am still able to select the ReportViewer window.

former_member183750
Active Contributor
0 Kudos

Ok. So I created a new WPF project, no Crystal Reports involved. Two forms.

Form1 has a button calling form2

Form2 calls a print dialog from a button to print "stuff"

Click the print button on form2

Print dialog comes up

Close form2, print dialog stays up just as it doe in an app that uses the CR WPF viewer

My conclusion then is that this is a WPF forms behavior (winform dowes not exhibit this behavior) - with CR viewer of without.

I suspect getting MS to explain this behavior is the next step.

Just to be complete here, I used a project from this link:

http://www.a2zdotnet.com/View.aspx?Id=66

All I did is add a form to it that calls the above form.

- Ludek

Former Member
0 Kudos

Hi Steve

I have the same problem with CR. Were you ever able to resolve this, or should I ask MS?

JC

Answers (0)