Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

printing text file in landscape

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

  • Termc1224Termc1224 Member Posts: 84
    : 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)
    :

    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 :)
Sign In or Register to comment.