Page 1 of 1

Report Printed event

Posted: Mon Oct 31, 2016 10:29 pm
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

Re: Report Printed event

Posted: Tue Nov 01, 2016 11:58 am
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.

Re: Report Printed event

Posted: Tue Nov 01, 2016 11:00 pm
by hbdibit
Thank you very much.
It works very well

Re: Report Printed event

Posted: Wed Nov 02, 2016 6:44 am
by Alex K.
Hello

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

Thank you.

Re: Report Printed event

Posted: Mon Sep 03, 2018 4:39 am
by tasdevelop
how to make it in stimulsoft js

Re: Report Printed event

Posted: Mon Sep 03, 2018 7:13 am
by Lech Kulikowski
Hello,

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

Thank you.

Re: Report Printed event

Posted: Tue Sep 25, 2018 4:29 am
by tasdevelop
how to remove browser margin and header ,footer in stimulsoft js
thanks

Re: Report Printed event

Posted: Wed Sep 26, 2018 3:25 am
by Andrew
margin.png
margin.png (63.04 KiB) Viewed 6269 times
Hello,

Please try to remove that option from printer settings.

Thank you.

Re: Report Printed event

Posted: Wed Sep 26, 2018 7:32 am
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

Re: Report Printed event

Posted: Wed Sep 26, 2018 10:37 am
by Andrew
what browser are you using?