Solved

Print jpeg's

Posted on 1999-01-12
3
277 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
Comment Utility
Could use the Printer.PaintPicture method.
0
 
LVL 1

Accepted Solution

by:
rondeauj earned 100 total points
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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…
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…
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…
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…

762 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

11 Experts available now in Live!

Get 1:1 Help Now