VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Print in VB. Simple code showing how to print text to the default printer.

by Bj?rn ?kesson (4 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 5th April 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Print in VB. Simple code showing how to print text to the default printer.

Rate Print in VB. Simple code showing how to print text to the default printer.



  'this decides the position of the text
  Print.CurrentX = 1000
  Print.CurrentY = 1000
  
  'Printer print this, and you can put in text1 instead of "This is pri...."
  Print.Printer = "This is printed by your application in VB, Have a nice day"
  'End Printer session
  Print.EndDoc
End Sub

Download this snippet    Add to My Saved Code

Print in VB. Simple code showing how to print text to the default printer. Comments

No comments have been posted about Print in VB. Simple code showing how to print text to the default printer.. Why not be the first to post a comment about Print in VB. Simple code showing how to print text to the default printer..

Post your comment

Subject:
Message:
0/1000 characters