streamToPrint = new StreamReader(filePath); try { printFont = new Font("Arial", 10); PrintDocument pd = new PrintDocument(); pd.PrintPage += new PrintPageEventHandler(pd_PrintPage); pd.PrinterSettings.PrinterName = @"\\UKSPPS01\UKSPPRN024"; // Print the document. pd.Print(); } finally { streamToPrint.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)