Page 1 of 1

The print events are not available.

Posted: Sat Dec 12, 2020 9:08 am
by Woodcutter
Hi Webmaster:

I'm back again.

Recently, i have try to using the Printing/Printed events in preview mode ( sitReport1.Show() ), there are not work.

but use sitReport1.Print() is OK.

Would you please help me for solve it a.s.a.p?

Code:

private void button1_Click(object sender, EventArgs e)
{
stiReport1.Load(@".\FGBoxLabel.mrz");
stiReport1.Show();
}

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

Screen shot in attached.

RGDS

Henry

Re: The print events are not available.

Posted: Mon Dec 14, 2020 7:43 am
by Lech Kulikowski
Hello,

Please try to use the following event:
StiOptions.Engine.GlobalEvents.ReportPrinting += GlobalEvents_ReportPrinting;

Thank you.