PrintDocument printDoc= new PrintDocument(); /* do some work for drawing and writing things on printDoc here */ // printDoc has some properties and methods for setting margin, drawing and ... PrintDialog pd = new PrintDialog(); pd.Document = printDoc; if (pd.ShowDialog() == DialogResult.OK) printDoc.Print();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)