Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Samir H.
  Where is Samir H.?
 Samir H.
 To: joe Degorio
  Where is joe Degorio?
 Tacloban City
 joe Degorio
Subject: RE: Pictures on report
Thread ID: 310857 Message ID: 310858 # Views: 51 # Ratings: 1
Version: Visual FoxPro 9 Category: Reports and Printers
Date: Sunday, June 26, 2011 7:19:57 AM         

> Hi,
> I have simple application that will save basic infos of employees and also capture their pictures.
> What I did is save only the path where the location of the image. To create the report of all employees infos, how do I display their pictures accordingly.
> There are 3 Control source type,I tried all of them but not having luck with it...hope anyone can help me.
> Regards,
> joe

Drop an image control (ole control) on the report, right-click it, select properties. In "Control Source Type", select "Expression or variable". Type "myPicFunction()" there (without quotes). Create such a prg (or a function in a prg) and put following in it:
cPic = tablePic.fieldPicFileName
return cPic



Pictures on report Posted by joe Degorio @ 6/26/2011 7:02:20 AM
RE: Pictures on report Posted by Samir H. @ 6/26/2011 7:19:57 AM
RE: Pictures on report Posted by joe Degorio @ 6/26/2011 7:57:44 AM