Solved

Print picture from picture box

Posted on 1998-12-21
3
148 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change the path of the data source in my Excel pivot table with macro 4 48
Exit a vb6 apps when a calling it apps closes 15 52
TT Auto Dashboard 13 95
Child Form in front 4 49
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
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…

829 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