The print events are not available.

Stimulsoft Reports.NET discussion
Post Reply
User avatar
Woodcutter
Posts: 52
Joined: Wed Mar 01, 2017 2:17 am

The print events are not available.

Post 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
Attachments
code.jpg
code.jpg (239.23 KiB) Viewed 820 times
events.jpg
events.jpg (200.91 KiB) Viewed 826 times
Lech Kulikowski
Posts: 6265
Joined: Tue Mar 20, 2018 5:34 am

Re: The print events are not available.

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply