By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 844 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

printing text file in landscape

P: 6
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)
Jan 6 '08 #1
Share this Question
Share on Google+
2 Replies


Dököll
Expert 100+
P: 2,364
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
Expand|Select|Wrap|Line Numbers
  1.         Call tabfile()
  2.         Dim piStart As New ProcessStartInfo
  3.         With piStart
  4.             .FileName = System.Windows.Forms.Application.StartupPath & "\tabhamlog.txt"
  5.             .Verb = "print"
  6.             .WindowStyle = ProcessWindowStyle.Hidden
  7.         End With
  8.         Process.Start(piStart)
Hey there!

I am not sure how this can be handled, but which part in the code posted makes the app print portrait, I would attempt to modify that part in the code for landscape...

In a bit!

Dököll
Jan 6 '08 #2

P: 6
I am not sure, I posted in a local newsgroup I frequent and thats the only response I got for printing. I cant even figure out why its printing at all

I tried using differnet options that come up after I press period but nothign I can figure out why, I figgured I would post here to see if someone could help me figgure it out or a way to do it better :-S
Jan 6 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.