?
Solved

Print jpeg's

Posted on 1999-01-12
3
Medium Priority
?
309 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
[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
 
LVL 4

Expert Comment

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

Accepted Solution

by:
rondeauj earned 200 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses
Course of the Month10 days, 19 hours left to enroll

770 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