Place a ToolstripButton on to the Form :
private void toolStripButton2_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild == null)
return;
printForm1.Form = this.ActiveMdiChild;
printForm1.PrintAction = System.Drawing.Printing.PrintAction.PrintToPreview;
printForm1.Print();
}
Labels: C#
April 2009 July 2009 August 2009 September 2009 September 2010 February 2011
Subscribe to Posts [Atom]