Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

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

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
killian
Asked:
killian
  • 2
1 Solution
 
watyCommented:
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
 
killianAuthor Commented:
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
 
watyCommented:
The save incorporate all you have in the picture box.

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now