I need a solution to log the print action in a database, i have add a print event, but its not captured :(
here the code:
private void testPrint()
{
Telerik.ReportViewer.WinForms.ReportViewer viewer = new Telerik.ReportViewer.WinForms.ReportViewer();
viewer.Print += new System.ComponentModel.CancelEventHandler(this.viewer_Print);
Report_Password report = new Report_Password();
viewer.ShowExportButton = false;
viewer.ShowHistoryButtons = false;
viewer.ShowPageNavigationControls = false;
viewer.ShowPageSetupButton = false;
viewer.ShowParametersButton = false;
viewer.ShowStopButton = false;
viewer.ShowZoom = false;
viewer.ShowRefreshButton = false;
viewer.ZoomMode = Telerik.ReportViewer.WinForms.ZoomMode.FullPage;
viewer.Dock = DockStyle.Fill;
viewer.Report = report;
}
void viewer_Print(object sender, CancelEventArgs e)
{
// Not caputred here :(
// Log to DB
}
how can i capture this?
Thank you
Volkan