Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How do i print stuff!

Posted on 1998-10-05
2
Medium Priority
?
176 Views
Last Modified: 2010-04-30
I am a newbie at Visual Basic.  I have visual basic 5.0 and I need to know how to Print stuff(As in send info to the printer, not the print command.)PLS help me with this.  I am really PO'ed right now.
0
Comment
Question by:Peanuthead
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 7

Accepted Solution

by:
kamall earned 200 total points
ID: 1438297
If you mean that you want to print the entire form object, use:

Me.PrintForm

This will print the current form and all the controls on it.

If you want however to send text to the printer, then use:

Printer.Print "My Text"
Printer.EndDoc

Hope that helps.
Regards
0
 
LVL 7

Expert Comment

by:kamall
ID: 1438298
For any questions, please leave me a comment.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question