Solved

Print picture from picture box

Posted on 1998-12-21
3
146 Views
Last Modified: 2010-05-03
Is there a way to make the quality of a picture better when printed? If so, please let me know.
0
Comment
Question by:mirna
3 Comments
 

Expert Comment

by:sujmags
ID: 1451794
whats ur picture file format and where do u want to print it from ?
0
 
LVL 12

Accepted Solution

by:
mark2150 earned 30 total points
ID: 1451795
Generalize your code to accept an OBJECT instead of hard coding to a picture box. When you need to see it on screen render to the Picture Box, but when you need to print render to the PRINTER. This will give you a printout that uses the best resolution of the printer instead of the best resolution of the picture box.

PUBLIC Target AS OBJECT

SET Target = Picture1    'Render to picture box
CALL Render

SET Target = PRINTER    'Render to print device
CALL Render
.

PRIVATE SUB Render( Tgt AS OBJECT )

Tgt.Print ...

END SUB

I can send more code if this isn't clear enough

M

0
 

Author Comment

by:mirna
ID: 1451796
I couldn't get the code to work, perhaps I'm not using it correctly. Could you please send me some more code, thank you.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

803 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