It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

printing text file in landscape

Moderator: dafunkymunky

printing text file in landscape

Postby davincinewfie on Sun Jan 06, 2008 1:32 am

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 & "\tabhamlog.txt"
.Verb = "print"
.WindowStyle = ProcessWindowStyle.Hidden
End With
Process.Start(piStart)
davincinewfie
 
Posts: 2
Joined: Sun Dec 16, 2007 1:19 am

Who is online

Users browsing this forum: No registered users and 2 guests