Solved

How do i print stuff!

Posted on 1998-10-05
2
166 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
  • 2
2 Comments
 
LVL 7

Accepted Solution

by:
kamall earned 50 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now