?
Solved

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

Posted on 1998-08-18
3
Medium Priority
?
207 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
[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
3 Comments
 
LVL 14

Accepted Solution

by:
waty earned 200 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

801 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