Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Picture on a Form and Report

Status
Not open for further replies.

Wendz

Programmer
Aug 9, 2000
47
PH
Hello to all! I have a question. How do you display a jpg picture on a report and form. Example the picture has a similar basename on one of your records like code ser-men sermen.jpg. Thanks and More Power to All!

Wendz [sig][/sig]
 
Do you want the jpg to be changed on the fly? It is no big deal on a form. It is a bit more trouble in a report. Or am I completely missing your question? [sig]<p> Pete<br><a href=mailto:blindpete@mail.com>blindpete@mail.com</a><br><a href= > </a><br>What your mother told you is true! You will go blind! (from moonshine anyway)[/sig]
 
If you are working with VFP5 or lower you have to transform the .JPG to a .BMP
If you are working with VFP6 you don’t .
Each object have the Picture property where you can choose the file image that you what over you Form.
In a report you have a icon that allow you stick image file over the reports, this icon is called IMAGE and is in the tool screen, also allow you do the same in a from.
[sig][/sig]
 
Wendz

If you want to print a report with a Textbox on top of an image, set the mode of the Textbox to transparent, and send the image to back.

The same applies to the form, setting .TextBox.BackStyle = 0 and .TextBox.BorderStyle = 0, and send the image to back.

You can produce attractive effects like this.

Chris [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top