Page 1 of 1
Close Button of StiWpfRibbonViewerControl does not work
Posted: Fri Jan 24, 2014 8:59 am
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 (68.06 KiB) Viewed 2383 times
Is there something I have to do?
Cheers,
Pascal
Re: Close Button of StiWpfRibbonViewerControl does not work
Posted: Fri Jan 24, 2014 10:16 am
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...
Re: Close Button of StiWpfRibbonViewerControl does not work
Posted: Fri Jan 24, 2014 12:39 pm
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.
Re: Close Button of StiWpfRibbonViewerControl does not work
Posted: Mon Jan 27, 2014 11:07 am
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
Re: Close Button of StiWpfRibbonViewerControl does not work
Posted: Tue Jan 28, 2014 5:15 am
by Andrew
Hello,
No problem! We are always ready to help you!