If Picture not found then show blank

SELECT '*'||a.Employee_code||'*' AS "BARCODE", a.Employee_code,
'D:\Pictures\'||a.employee_code||'.bmp' as pict,a.job_status,
a.Employee_name, a.Designation_desc,a.new_nic_no,
a.COMPANY_CODE, b.company_name,b.ADDRESS,
a.location_code, c.location_name,
a.department_code, d.department_name,
e.division_code, division_name
FROM Employees a,
company b,
     locations c,
     departments d,
divisions e
where a.company_code = b.company_code
and a.location_code = c.location_code
and a.department_code = d.department_code
and a.employee_code between :eno and :sno
and e.division_name = :div
and a.division_code = e.division_code
and a.department_head = 'N'
I used this query for print ID card it is working fine but one problem is here that if I dont have picture of any employee then report gives the error that "Picture not found" I want that if picture not found in d:\pictures then only show the blank space instead of message.

You are right Dmill
I used Formula column and write there these code
function CF_1Formula return Char is
l_filename text_io.file_type;
BEGIN
l_filename := text_io.fopen ('.\D:\Pictures\' || :pict, 'r');
text_io.fclose (l_filename);
RETURN :pict;
EXCEPTION
-- the report photo doesn't exist
WHEN OTHERS THEN
BEGIN
l_filename := text_io.fopen ('.\D:\Pictures\default_image.jpg', 'r');
text_io.fclose (l_filename);
RETURN 'default_image.jpg';
EXCEPTION
-- the report photo 'default_image.jpg' doesn't exist
WHEN OTHERS THEN RETURN NULL;
END;
END;
but here every picture is showing its default picture although I have some picture in said folder.

Similar Messages

  • If pic not found then show blank space

    SELECT '*'||a.Employee_code||'*' AS "BARCODE", a.Employee_code,
    'D:\Pictures\'||a.employee_code||'.bmp' as pict,a.job_status,
    a.Employee_name, a.Designation_desc,a.new_nic_no,
    a.COMPANY_CODE, b.company_name,b.ADDRESS,
    a.location_code, c.location_name,
    a.department_code, d.department_name,
    e.division_code, division_name
    FROM Employees a,
    company b,
    locations c,
    departments d,
    divisions e
    where a.company_code = b.company_code
    and a.location_code = c.location_code
    and a.department_code = d.department_code
    and a.employee_code between :eno and :sno
    and e.division_name = :div
    and a.division_code = e.division_code
    and a.department_head = 'N'
    I used this query for print ID card it is working fine but one problem is here that if I dont have picture of any employee then report gives the error that "Picture not found" I want that if picture not found in d:\pictures then only show the blank space instead of message.

    Query is working fine see in query there is a field PIC that is representing to picture from D:\pictures folder
    if I have 20 records in employee table from 1 to 20 and pictures exist in D:\pictures folder only 1 to 5 then report shows the error that D:\pictures\6.jpg is not found
    I want that if I dont have picture in said folder then it does not return error only show the white rectangle.
    I know that here i can use Pl/Sql but there is not any logic to define there.

  • HT1926 Have the same problem as many other users: tried to update iTunes on Windows 7 today; first message "unable to locate component- MSVCR80.dll was not found" then "iTunes was not installed correctly. Please reinstall iTunes - Error 7 (Windows error 1

    I have the same problem as many other users: updated iTunes on Windows 7 on Jan 26, 2014 and iTunes does not open.  First message "unable to locate component- MSVCR80.dll was not found" then "iTunes was not installed correctly. Please reinstall iTunes - Error 7 (Windows error 126)". When will Apple fix this? Don’t feel like uninstalling all Apple software and then re-installing it as suggested, as I am on a terribly slow internet connection while travelling in the DR Congo.

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall press on)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • HT1926 Trying to install iTunes for Windows Vista. Says "successfully installed," but when I try to open iTunes I get error messages, "unable to locate component, AVFoundationCF.dll not found," then "Error 7 (Windows error 126)

    Trying to install iTunes for Windows Vista. Says "successfully installed," but when I try to open iTunes, I get error messages, "unable to locate componant AVFoundationCF.dll not found," then "Error 7 Windows error 126." I have tryed to reinstall twice with the same result.

    Repair Apple Application Support.
    START/CONTROL PANEL/PROGRAMS N FEATURES/highlight APPLE APPLICATION SUPPORT, then click the REPAIR button

  • I have itune 10.5 with windows 7, when i click itune store it is not connected and show blank page

    I have itune 10.5 with windows 7, when i click itune store it is not connected and show blank page.

    You can't, Anh.  That's what people are telling you.  At this time there's no way to get out of recovery mode.   You're playing around with beta software and this is what you get.
    Tell your "developer friend" he needs to talk to other developers to see if this can be fixed, or have him replace your devices that you should never have let him play with to begin with.

  • Characteristic /CCM/PICTURE not found

    SAP_BASIS 640 SAPKB64019
    SRM_SERVER 500 SPAKIBKS10
    CCM 200_640 SAPK-26406INCCM
    I cannot upload /ccm/picture to supplier catalog through CSV 2.0.
    I'm pretty sure I have the CSV file format correctly, when I do the upload, I get an error: Value for catalog item XXXX (supplier part no.) of supplier XX is incorrect. Detailed error says: Characteristic /CCM/PICTURE not found.
    There is a SAP note: 878316 that addresses this issue, for SAPK-26402INCCM, but we're pass that release.
    I'm currently using the work-around of a custom picture characteristic, but I'd much rather use the pre-defined one if i can.

    Hi
    MIME stands for MIME ( Multipurpose Internet Mail Extensions ) Types
    Refer to this links
    <b>http://help.sap.com/saphelp_erp2005vp/helpdata/en/19/14dfeed7b67a4d9b8406b0a56ebe37/frameset.htm
    http://help.sap.com/saphelp_srm40/helpdata/en/42/1aae270f261608e10000000a114e5d/frameset.htm
    http://help.sap.com/saphelp_srm40/helpdata/en/48/35d4fa4abf11d18a0f0000e816ae6e/frameset.htm
    http://help.sap.com/saphelp_srm40/helpdata/en/fb/75d33980155556e10000000a11402f/frameset.htm
    http://help.sap.com/search/highlightContent.jsp
    http://help.sap.com/saphelp_srm50/helpdata/en/42/151D5D93BB73ADE10000000A114B54/content.htm</b>
    Hope this will help.
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • Receiving "Not Found" - then "Error:Out of Memory" trying to open Sequence

    I have received a FCP Project edited in 2009 from the UK and have pulled the project file onto my workstation and all of the media onto an ext HD. I have also reconnected all of the media. However, when I try and open one of the Sequences in the project - I receive the following error "Not Found" then once I click off of that a second error "Error:Out of Memory". All of the other sequence in the project open fine.
    Initially, I was able to open the original project file and open the sequence - but when I tried to copy the sequence & paste into a new project-I would receive the errors. Now I am receiving the same errors in the original project.
    At first I thought it might be an problem with the computer but I have tried this on two different work stations /computers so I don't think it would be a prefs ( trash preferences) issue. Also footage was first on an XRAID and then I brought it to an external HD, so I don't think it had anything to do with permission issues.
    This sequence is critical that I am able to get to it as it is part of a TV episode, so I would very much appreciate any help / advice on fixing this problem ASAP!
    Thanks!

    p.s. having looked at other posts, perhaps I am missing some (or all) of the relevant codecs?
    In the folder Macintosh HD > Library > Quicktime
    there is basically nothing. Do you think this is the problem?
    If so, where do I download FCP codecs from?
    Many thanks..

  • Regularly get "Server Not Found" then always works with a retry. Why

    Regularly get Server Not Found" then always works with a "retry".
    == This happened ==
    Every time Firefox opened
    == I started using Firefox

    Issue
    I have another kind of problem with Firefox
    Description
    Regularly get Server Not Found" then always works with a "retry".
    This happened
    Every time Firefox opened
    I started using Firefox
    Firefox version
    3.6.3
    Operating system
    xp windoes
    User Agent

  • HT5655 its not downloading. it shows blank when i click the download now button.

    its not downloading. its shows blank screen when i clicked the download now buton.

    1. Check  whether you are currently  in  YouTube HTML 5 trial.
         http://www.youtube.com/html5
        At the bottom  left of the page  uncheck the box for
       "You are currently in the HTML5 trial".
    2. Reset Safari.
        Click Safari in the menu bar.
        From the drop down select "Reset Safari".
        Uncheck the boxes next to all items.
        Check the box next to "Remove all website data".
        Click "Reset".
    3. Turn off Extensions/Plug-ins if any that may interfere with Flash working properly.
        Safari > Preferences > Extensions

  • Folder for pictures not found...

    Hi!
    The homepage for my company (actualy just a placeholder) has been run for a long time on a leopard server.
    I now updated to OS X Server and the logo is not found, though I believe it is on the right place (/Library/WebServer/Documents/BLUM/)
    I manualy put the /pictures folder in there, but cannot find the index.html.
    Can anyone help me locate and fix this?

    The HTML Code is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Unbenanntes Dokument</title>
    <style type="text/css">
    <!--
    body {
              background-color: #0D114C;
    -->
    </style></head>
    <body>
    <div align="center"><img src="pictures/blumlogo.png" width="320" height="480" alt="BLUM Informatik GmbH" longdesc="http://www.bluminformatik.ch/" /></div>
    </body>
    </html>
    i tried changing to BLUMLogo.png to no avail...

  • HT1199 I updated Itunes on my PC and now when i try to open Itunes i get a error message saying "application failed to start because MSVCR80 was not found" then whenI close that pop up I get a error message saying "windows was not installed correctly Erro

    I updated my itunes the other day and now it won't open I get error message saying "application failed to start because MSVCR80 was not found"  When I close that window I get message stating Itunes was not installed correctly Error 7 Windows error 126.  My PC is a Acer and I'm running Windows Visa.  I tried to uninstall Itunes and reinstall it and get same message.  Can anyone help.

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99659)

  • Pictures not found-got new macbook

    I got a new macbook and was using time machine to transfer everything over. I didn't transfer movies and pictures because I had enough pictures alone to fill up the entire new computer's harddrive (I am a photographer.) So now, in the finder, there is the picture and movies under places, but when I click on it, it just says the volume can't be found...this is a PROBLEM.
    I edit my pictures in photoshop and there is now no way to get to my imported photos because there is no pictures folder anywhere....I know it's because I didn't import it from the old one, but there was no way I could because of space...What can I do?

    Do you mean your only copies of those photos are on your TM drive?
    If so, stop using TM immediately. Turn it off via TM Preferences.
    TM will, eventually, delete it's copies of items that no longer exist on your internal HD. In fact, it may have done so already.
    The backups for your old Mac won't be visible via +Enter Time Machine+ on your new Mac. To see them, you may need the (badly named) +Browse Other Time Machine Disks+ option. To use it, either hold down the Option key while selecting the TM icon in your Menubar, or control-click (right-click) the TM icon in your Dock. This option will take you into the TM interface in a way that you should see all backups on the disk you select.
    You need to find somewhere else for the originals of your photos. Your best bet is probably another external drive. Restore your photos to it from TM, then figure out how to "point" Photoshop to them. This should be simple; there should be a setting in Photoshop, or you could probably make an alias on your internal HD.
    TM will back-up that other drive along with your internal HD, unless you tell it not to.
    And, if these are really important, you should consider also having some sort of off-site backup as well. External drives are great, but they may not protect you from fire, flood, theft, or direct lightning strike on your power lines. There are many ways to do this, such as a portable external drive, or even DVDs, but do something you can take to your safe deposit box, relative's house, workplace, etc.

  • Ipad keep restarting when connected to computer or plug for charge. If not connected then show me only batter logo

    HI,
    I tried each and every solution available on the internet. But still i am thinking it's software issue.
    Here is the issue i am facing in my iPad 3.
    1) If iPad is not connected with computer or plug for charge then it just showing me red low bettery symbol
    2) If i connect it for charging with apple laptop or windows or power plug alwys keep restarting and never showing me the home screen with apps.
    I tried with hard restore using DFU mode for iOS 7.1 and all process is done also but still it is keep restarting and battery simbol if not connected.
    My iPad is not jailbroaken so no any third party software is there.
    I dont know where i stuck in this issues mostly i tried with each solution i tried with different computers , different cables and all.
    It's very urgent kindly send me your thoughts which can help me to get this solution.
    My ipad warrenty is expired and i can not give it to replace which i can not afford.
    Looking forward to hear your thoughts and how can i solve this issue.
    Thanks And Regards
    Himanshu

    Hello, Nectar bits. 
    Thank you for visiting Apple Support Communities.
    I see you have tried some troubleshooting steps already with there issue persisting.  Here are some additional troubleshooting steps to go through when experiencing this issue.  They are labeled for the iPhone, but apply to the iPad as well. 
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIs and corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 30 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    If the issue persists, see the section labeled Issue not resolved.
    Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Cheers,
    Jason H.

  • IPhoto '11 source picture not found

    trying to work on a picture which I used for a book. Although the picture is present in the album and has been again added from the harddisk I cannot work on the picture, comment is "source picture is not online". I tried repairing the database but to no effect. Any suggestions?

    In the iPhoto preferences is the preference to copy imported items to the iPhoto library checked or have you unchecked it?
    LN

  • Facebook newsfeed not working.. showing blank white page and retrying option

    bb z10 cantshow the newsfeed ... it shows the msg that there is no new news feed retry.. but when i retry it shows again the same msg
    Solved!
    Go to Solution.

    Yes, I believe there is an issue currently with the Facebook app connecting, I am seeing others reporting the same.
    Same for me, as well.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for