Solved

Print picture from picture box

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel - Save a copy of work book 13 91
Access query that references subform 5 48
fso.FolderExists("\\server\HiddenFolder$") 4 87
Collapse and expand table in Word 2010 2 96
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

756 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