Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 319
  • Last Modified:

Print jpeg's

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
OliverSchmidt
Asked:
OliverSchmidt
1 Solution
 
chabaudCommented:
Could use the Printer.PaintPicture method.
0
 
rondeaujCommented:
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
 
OliverSchmidtAuthor Commented:
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

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now