VB6 Print in .Net

  • Thread starter Thread starter auhagen
  • Start date Start date
A

auhagen

Does anyone have an example of how to emulate this VB6
code?
Printer.Orientation = 1
PrintForm
Printer.EndDoc

Thanks...
 
Hi,

Take a look at the PrintDocument and PrintController classes. There's also
an article in the MSDN Magazine on how to print a text file in .NET.
However, I am not sure you can easily print the contents of the form.
 
Back
Top