Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

Printer.EndPrint not working in AR8

$
0
0

Hello,

I have confirmed that the Document.Printer.EndPrint event does not fire in any AR8 reports. We are testing conversion from v3, and it appears the functionality is still intact in the version 6 conversion of reports.

I have confirmed this with our reports and your sample reports. The BeforePrint event is working.

This is an urgent issue for us since we have many reports which terminate themselves on the EndPrint event in the viewer form, please update us with a fix/status asap so we can complete our evaluation of 8.

Thank you.

/////

/// from viewer form

private void StartupForm_Load(object sender, EventArgs e)
{
try
{
// Setup a new instance of the AnnualReport
AnnualReport rpt = new AnnualReport();

//Run the report, and set it to the viewer control on the form
rpt.Run();
this.arvMain.Document = rpt.Document;
rpt.Document.Printer.EndPrint += new System.Drawing.Printing.PrintEventHandler(Printer_EndPrint);

}
catch (GrapeCity.ActiveReports.ReportException ex)
{
MessageBox.Show(ex.Message, this.Text);
}

}

private void Printer_EndPrint(object sender, EventArgs e)
{
MessageBox.Show("Printing Ended"); // never fires
}

//////////
// from report object

private void AnnualReport_ReportEnd(object sender, EventArgs e)
{
this.Document.Print(false, false);
}


Viewing all articles
Browse latest Browse all 14170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>