Solved

How do I make text I put in a picturebox "paint" to the printer?

Posted on 1998-08-18
3
187 Views
Last Modified: 2013-11-13
I have a graphic in a picturebox. At a point in my program.. text is also printed to the picturebox.. how do I paint or transfer the graphic and the text (and maintain their relationship x,y coordinately wise to each other) to another form or the printer?
0
Comment
Question by:killian
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
waty earned 100 total points
ID: 1429765
You have to save your picture box to a bitmap. Using this bitmap, you can load it in another picture box, or even print to the printer.

SavePicture Image, "TEST.BMP"

Set Picture1.Picture = LoadPicture("TEST.BMP")

By the way, you can take a look to my web site, I have written an very good Print Preview OCX entirely in VB.
http://www.geocities.com/ResearchTriangle/6311/
0
 

Author Comment

by:killian
ID: 1429766
waty.. I tried what you proposed and just the graphic is transfered.  The text is still left in the original picturebox, but not transfered to the new Picturebox. Appears that the save isn't incorporating the text.
0
 
LVL 14

Expert Comment

by:waty
ID: 1429767
The save incorporate all you have in the picture box.

Send me your code, or project, I will take a look
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

757 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

21 Experts available now in Live!

Get 1:1 Help Now