Solved

Print jpeg's

Posted on 1999-01-12
3
281 Views
Last Modified: 2010-05-03
I want to print jpeg's to a report, combined with other fields from a database. I use LoadPicture to get the jpeg's in the form (the name of the jpeg-file is in the database), but can't get them to the printer, Crystal won't do it and other add-ons I know don't either. Any suggestions?
0
Comment
Question by:OliverSchmidt
3 Comments
 
LVL 4

Expert Comment

by:chabaud
ID: 1455863
Could use the Printer.PaintPicture method.
0
 
LVL 1

Accepted Solution

by:
rondeauj earned 100 total points
ID: 1455864
If you store the Jpeg as an OLE object(which will convert it to BMP) you can then use Crystal Reports to print them.  Or you can can print them yourself.  Like this:

picture1.picture = loadpicture(app.path & "\whatever.jpg")
printer.paintpicture picture1.picture,yourx, youry
printer.enddoc

0
 

Author Comment

by:OliverSchmidt
ID: 1455865
This method will take up a lot of space, as the database will convert it to bmp. With bmp's it is fairly easy to print, but the challenge is the jpeg.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB error "Type mismatch" 2 50
How does CurrentUser work? 10 31
how to know if my Checkbox is True in VB6.0? 9 40
Excel Automation VBA 19 37
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…
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…
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…
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…

920 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

15 Experts available now in Live!

Get 1:1 Help Now