Report Printed event

Stimulsoft Reports.WPF discussion
Post Reply
hbdibit
Posts: 9
Joined: Sun Oct 02, 2016 11:38 pm

Report Printed event

Post by hbdibit »

Hello,

I am trying to get notified if a report is being sent to the printer. I have found the Printed event handler, which looks like it is supposed to do what I am after. However, if the user selects cancel on the windows print dialog the Report.Printed event is still being raised

Is there a way to know if the report has been sent to the printing spool?

Thanks
Craig
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Report Printed event

Post by Alex K. »

Hello,

You can use the following code in the

Code: Select all

var result = (sender as StiReport).PrinterSettings.PrintDialogResult;
if (result  == DialogResult.OK || result  == DialogResult.None)
{
    ...
}
Thank you.
hbdibit
Posts: 9
Joined: Sun Oct 02, 2016 11:38 pm

Re: Report Printed event

Post by hbdibit »

Thank you very much.
It works very well
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Report Printed event

Post by Alex K. »

Hello

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
tasdevelop
Posts: 8
Joined: Mon Sep 03, 2018 4:38 am

Re: Report Printed event

Post by tasdevelop »

how to make it in stimulsoft js
Lech Kulikowski
Posts: 6812
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Printed event

Post by Lech Kulikowski »

Hello,

In the Web version, it is not possible due to the browser limitations.

Thank you.
tasdevelop
Posts: 8
Joined: Mon Sep 03, 2018 4:38 am

Re: Report Printed event

Post by tasdevelop »

how to remove browser margin and header ,footer in stimulsoft js
thanks
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Re: Report Printed event

Post by Andrew »

margin.png
margin.png (63.04 KiB) Viewed 6268 times
Hello,

Please try to remove that option from printer settings.

Thank you.
tasdevelop
Posts: 8
Joined: Mon Sep 03, 2018 4:38 am

Re: Report Printed event

Post by tasdevelop »

Andrew wrote: Wed Sep 26, 2018 3:25 am margin.pngHello,

Please try to remove that option from printer settings.

Thank you.
it just work for chrome
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Re: Report Printed event

Post by Andrew »

what browser are you using?
Post Reply