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

x
?
Solved

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

Posted on 1998-08-18
3
Medium Priority
?
208 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
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 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…
Suggested Courses

610 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