this is going to sound stupid but I am trying to print a text file I am not sure why this works but this code below prints the file but I need to get it printed in landscape and since printing in vb 2005 studio is way different that 6.0 I need all the help I can get
Call tabfile()
Dim piStart As New ProcessStartInfo
With piStart
.FileName = System.Windows.Forms.Application.StartupPath & " abhamlog.txt"
.Verb = "print"
.WindowStyle = ProcessWindowStyle.Hidden
End With
Process.Start(piStart)
Comments
: am not sure why this works but this code below prints the file but I
: need to get it printed in landscape and since printing in vb 2005
: studio is way different that 6.0 I need all the help I can get
:
: Call tabfile()
: Dim piStart As New ProcessStartInfo
: With piStart
: .FileName = System.Windows.Forms.Application.StartupPath
: & " abhamlog.txt"
: .Verb = "print"
: .WindowStyle = ProcessWindowStyle.Hidden
: End With
: Process.Start(piStart)
:
printer.Orientation = 2
printer.Orientation = vbPRORLandscape
I'm the best there is,
the best there was,
and the best there ever will be.
hahahahaha lolz