Solved

Print picture from picture box

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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 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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

734 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