Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Suppressing Photos of Staff Post Reply Post New Topic
Author Message
KimC
Newbie
Newbie


Joined: 07 Dec 2011
Online Status: Offline
Posts: 6
Quote KimC Replybullet Topic: Suppressing Photos of Staff
     Posted: 21 Jun 2012 at 11:16am
I am creating a roster of our staff.  Not all have taken their photograph, so does anyone know how to suppress their photo beside their name when it is not available?
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 22 Jun 2012 at 3:52am
You could try this:
 
1.  Right-click on the picture and select Format...
2.  On the Common tab, click on the formula button to the right of Suppress (do NOT check the suppress checkbox!)
3.  Enter something like the following:
 
IsNull({yourtable.PictureField})
 
-Dell
 
IP IP Logged
KimC
Newbie
Newbie


Joined: 07 Dec 2011
Online Status: Offline
Posts: 6
Quote KimC Replybullet Posted: 25 Jun 2012 at 8:23am
Hi and thank you for responding.  I did try the suppression; however, I think the graphic location holds the key, syntax listed below:
 
"\\wpvhfsrms02.central.pictures.lcl\RMS\Staff_Pictures\" + {pple_t_Staff_Profile.ix_Staff_Number} + ".jpg"
 
I have created a dummy placeholder ("00001-00000" + ".jpg").  I tried writing the formula to retrieve the dummy placeholder if the staff member has not taken a photo and there is no ix_Staff_Number; however, I keep getting the message, "A field is required":
 
if isnull("\\wpvhfsrms02.central.purdue.lcl\RMS\Student_Pictures\" + {pple_t_Student_Profile.ix_Student_Number} + ".jpg")
then "00001-00001" + ".jpg"
else "\\wpvhfsrms02.central.purdue.lcl\RMS\Student_Pictures\" + {pple_t_Student_Profile.ix_Student_Number} + ".jpg"
 
Any ideas?
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 25 Jun 2012 at 9:21am
Try this:
 
if isnull({pple_t_Student_Profile.ix_Student_Number})
then "00001-00001.jpg"
else "\\wpvhfsrms02.central.purdue.lcl\RMS\Student_Pictures\" + {pple_t_Student_Profile.ix_Student_Number} + ".jpg"
 
-Dell
IP IP Logged
KimC
Newbie
Newbie


Joined: 07 Dec 2011
Online Status: Offline
Posts: 6
Quote KimC Replybullet Posted: 25 Jun 2012 at 10:10am
The problem is still there; however, now I think it is with the vendor's software.  If I filter to a smaller group of records, the report works fine inside the software without adding an "if" statement.  If I try to print for the entire group of 800, I either get a server error or gray screen.  The report has always worked fine outside of the vendor's software, so it has to be due to software limitations.  Thanks for your help!
IP IP Logged
KimC
Newbie
Newbie


Joined: 07 Dec 2011
Online Status: Offline
Posts: 6
Quote KimC Replybullet Posted: 25 Jun 2012 at 10:10am
...and I meant that I appreciated your help!  Smile
IP IP Logged
KimC
Newbie
Newbie


Joined: 07 Dec 2011
Online Status: Offline
Posts: 6
Quote KimC Replybullet Posted: 05 Jul 2012 at 5:33am
This may now be an import issue.  In researching the Crystal Reports report, talking to the vendor, and verifying that the photo 'appears' to be okay when you open it, it and another .jpg photo are very small -- only 17kb.  It was imported in this size, and even though I can make it larger on the report, I'm now wondering if there is a size issue with imported photos.  The vendor uses Adobe Reader X and that is what I'm using, and they experience the same issue.  We could try a lower version of Adobe Reader, but that goes against our department's policy.  I'm back to square one, but at least can run the reports outside of the vendor's software when needed.  It's not like it is a lot of pictures causing this issue, just a hit-n-miss situation.  If you hear of anything related to Adobe Reader X, please let me know.  There may be a setting that needs modified...
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum