Solved

Print picture from picture box

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now