Printing using only PrintDocument

Jun 1 2004 11:18 AM
WEvery example I've seen includes either StreamReader or PrintDialog. I am trying to (simply - which may not be the right word) convert a simple print routine from VB6 to VB.Net I have a series of print program written in VB6. Each of them prints from arrays built after a file has been opened. When the user clicks on "Print XYZ report", the click event contains the following pseudo-code: Private Sub PrintXYZ_Click() For index = 1 to max If line_ctr > 0 then printer.newpage printer.print Header_1 printer.fontsize = 10 printer.print Header_2 printer.fontsize = 8 l line_ctr = 2 endif printer.print Name(index) line_ctr = line_ctr + 1 new index end sub What is necessary to do this painlessly. Thanx

Answers (2)