Solved

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

Posted on 1998-08-18
3
206 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 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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.
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
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…

688 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