if (e.Tool.Id == 5010)
{
Viewer.Document.Print(false, false, false);
}
Add a button in viewer using this code
DataDynamics.ActiveReports.Toolbar.Button _printbtn = new DataDynamics.ActiveReports.Toolbar.Button();
_printbtn = new DataDynamics.ActiveReports.Toolbar.Button();
_printbtn.ImageIndex = 1;
_printbtn.Id = 5010;
_printbtn.ButtonStyle = DataDynamics.ActiveReports.Toolbar.ButtonStyle.TextAndIcon;
_printbtn.Caption = "Print";
_printbtn.ToolTip = "Print Document";
arvReport.Toolbar.Tools.Insert(1, (DataDynamics.ActiveReports.Toolbar.Tool)_printbtn);
In event handler if viewer
if (e.Tool.Id == 5010)
{
Viewer.Document.Print(false, false, false);
}