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
Solved

How do i print stuff!

Posted on 1998-10-05
2
170 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

839 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