Close Button of StiWpfRibbonViewerControl does not work

Stimulsoft Reports.WPF discussion
Post Reply
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Close Button of StiWpfRibbonViewerControl does not work

Post by PJoyeux »

Hi,

when using StiWpfRibbonViewerControl on an own window the Close-Button in the ribbon seems to not have any function... I have to click the normal Close-Button of the window to close it.
Bild 2.png
Bild 2.png (68.06 KiB) Viewed 2384 times
Is there something I have to do?

Cheers,
Pascal
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: Close Button of StiWpfRibbonViewerControl does not work

Post by PJoyeux »

And in this constellation I still have the issue, that clicking the "Print"-Button in the Ribbon directly prints the report on the default-printer without showing a printer-dialog to choose another printer...
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Close Button of StiWpfRibbonViewerControl does not work

Post by HighAley »

Hello, Pascal.
PJoyeux wrote:when using StiWpfRibbonViewerControl on an own window the Close-Button in the ribbon seems to not have any function... I have to click the normal Close-Button of the window to close it.
You should handle Close event to make this button work.
PJoyeux wrote:And in this constellation I still have the issue, that clicking the "Print"-Button in the Ribbon directly prints the report on the default-printer without showing a printer-dialog to choose another printer...
The print dialog should appear always. We don't know why there is no Print Dialog in your application. Do you get Print Dialog in our Demo?
Could you send us any additional information about this issue? Maybe a sample project?

Thank you.
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: Close Button of StiWpfRibbonViewerControl does not work

Post by PJoyeux »

Aleksey Andreyanov wrote:Hello, Pascal.
PJoyeux wrote:when using StiWpfRibbonViewerControl on an own window the Close-Button in the ribbon seems to not have any function... I have to click the normal Close-Button of the window to close it.
You should handle Close event to make this button work.
Ok, THANK YOU for the tip, works now. :-)
Aleksey Andreyanov wrote:
PJoyeux wrote:And in this constellation I still have the issue, that clicking the "Print"-Button in the Ribbon directly prints the report on the default-printer without showing a printer-dialog to choose another printer...
The print dialog should appear always. We don't know why there is no Print Dialog in your application. Do you get Print Dialog in our Demo?
Could you send us any additional information about this issue? Maybe a sample project?

Thank you.
Regarding this problem, I had an error in my logic where I wrongly set "aReport.PrinterSettings.ShowDialog = false;" So, sorry for bothering you with this, it works now.

Cheers,
Pascal
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: Close Button of StiWpfRibbonViewerControl does not work

Post by Andrew »

Hello,

No problem! We are always ready to help you!
Post Reply