mmscg
April 24th, 2007, 04:28 PM
How would I do this in C++ (using WinAPI)?
Printer.FontName = "courier new"
Printer.FontSize = 8
For i = 1 To 200
Printer.Print i
Next i
ie I want each i on a new line
I know I have to write to a printer device context, but I can't figure out how
to add a linefeed or carriage return, so each printing of i will be on a new line,
and adjusted to account for font and font size.
Printer.FontName = "courier new"
Printer.FontSize = 8
For i = 1 To 200
Printer.Print i
Next i
ie I want each i on a new line
I know I have to write to a printer device context, but I can't figure out how
to add a linefeed or carriage return, so each printing of i will be on a new line,
and adjusted to account for font and font size.