Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- streamToPrint = new StreamReader(@"C:printerlogrootlog2.log");
- try
- {
- printFont = new Font("Arial", 10);
- PrintDocument pd = new PrintDocument();
- pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
- // Print the document.
- pd.PrinterSettings.PrinterName = "HP LaserJet M1522 series PCL6 Class Driver";
- pd.Print();
- }
- finally
- {
- streamToPrint.Close();
- }
- (...)
Add Comment
Please, Sign In to add comment