I have a WinForms project using reporting services to preview reports. I am using Microsoft.ReportViewer 2012 v11.0.3366.16. I have also tried using the 2015 v12 with same result. I also have Microsoft.Reporting.Winforms NuGet package.
I am having an issue where another window goes in front of my application after closing the print dialog. I need the window order to stay as it is.
Here is a short screen clip reproducing the issue: https://puu.sh/HrCUl/3f67779e80.mp4
Steps to reproduce the issue:
Click on a window not from your project (e.g. calculator)
Click on your project windows to bring it in front of the calculator.
Open print dialog.
Close print dialog (you can cancel or print)
The calculator goes in front of your project.
Unfortunately, work-arounds such as using TopMost property cannot be used in this situation. Sometimes, the user may want some windows to be in front; using TopMost is undesired in this case.
This may seem like a trivial issue, but our user is using our program as a daily operation and prints out a lot of reports. This issue creates a burden on their workflow.
Could anyone confirm this issue? If so, is this a Microsoft bug? Or is there anyway to fully fix this issue without any work-arounds?