Printed Event

Stimulsoft Reports.NET discussion
Post Reply
Emd
Posts: 6
Joined: Wed Jun 30, 2010 2:08 am
Location: Israel

Printed Event

Post by Emd »

Hi,

I need to know if the report is printed, I used the follwing command

frm.stiReport1.Printed += new EventHandler(stiReport1_Printed);
frm.stiReport1.Show();

void stiReport1_Printed(object sender, EventArgs e)
{
MessageBox.Show("Printed");
}

but why it's not TRIGERED when the report is printed ?
please tell me how it is used

Thanks
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Printed Event

Post by Jan »

Hello,

Try to use following code:

Code: Select all

frm.stiReport1.Compile();
frm.stiReport1.CompiledReport.Printed += new EventHandler(stiReport1_Printed);
frm.stiReport1.Show();

void stiReport1_Printed(object sender, EventArgs e)
{
MessageBox.Show("Printed");
}
Thank you.
Emd
Posts: 6
Joined: Wed Jun 30, 2010 2:08 am
Location: Israel

Printed Event

Post by Emd »

Thanks it worked perfectly
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Printed Event

Post by Andrew »

We are glad to help you. :biggrin:
Post Reply