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.

Similar Messages

  • 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.

  • Flash Player Won't Load In My Web , Insted On That Show Blank Space

    I have Flashplayer Installed In My Chrome Browser , Earlier Eveyrhting was perfect , but Recently The flash plugin stops working and no longer plays the media on the webpage Mp3Ghost , doesnt even load sometime , Any Suggestion  ? its a wordpress web
    Thanks !

    Hi.
    This is happening on my site http://gossip.pk as well.
    Adobe player is not playing & instead it shows blank space.
    So I am unable to use any video with adobe player on my site as well as facebook videos.
    what could be te solution?

  • 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.

  • 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

  • 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)

  • I tried restoring deleted photos, now my i photo albums are showing blank spaces with question marks on where there should be photos!!

    Can someone help me! I tried restoring deleted photos using time machine...I know I shouldn't have fiddled! When i went back to my i photo albums some of the photos had disappeared and in the space was a grey square with a question mark in. The photo still shows in the top area but i can't put it into a space. I have i photo 08. I don't know if it is an i photo album problem or I have in some way corrupted some of my photos. When i right click on the question mark the photo appears and I can drag back to the top area, it just won't show up in the album. Any suggestions? Thanks

    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption. 

  • 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.

  • PICS NOT FOUND-MOVED TO EXTERNAL HARDRIVE??

    I recently moved "my pictures" to my external hardrive due to space limitations on my laptop. My external hardrive is always connected.
    When opening my Photoshop Elements and choosing pictures that exist in the library within, it shows that the system is "browsing" for the picture but can't find it. What do I need to do to have my Photoshop Elements "connect" to my pictures again like it was before I moved them to a different drive? Thanks for your assistance.

    As Paige said, its always a good practice to do your organizing operations through Organizer rather than Windows Explorer. At this stage Organizer does not know that files have been moved.
    So either follow above mentioned funda or use Reconnect dialog in Organizer.
    How to Use:
    - Select a missing file
    - Go to File>Reconnect>Missing File..
    - Use Reconnect dialog and map this file with the actual file on external drive
    - Now Again go to File>Reconnect>All Missing Files..
    It shoudl reconnect all the file at new location if external hard drive is connected.
    Try & Get back ...
    + Ripple

  • Need help scanning in Pictures:hp 4500-pics not found/trying to open scanning session

    I have successfully scanned once with my hp 4500 printer, but once images are scanned nothing happens.  They are not in iphoto even though I scanned them to pictures folder.  When I open the printer scanner icon it says "trying to open scanning session" and remails here indefinitely.  HELP!

    OS X 10.6.8
    Regardless of selecting pictures, or iphoto, once that first scan is done, the pics are not there and no other scans can be done afterwards without the printer/scanner locking up and saying trying to open scanning session.  In image capture my printer scanner is not visible, the printer is visible however as a desktop icon.
    Thanks for any help!

  • 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

  • AE and closed network...deactivated my AE and won't hard or factory reset

    Hi there. Simply set my AE to a closed network, but didn't get a chance to set name and password before AE shut down. Now I can't gain green light by unplugging and replugging, soft, hard or factory reset. Ugh! I can't locate AE on Airport Utility 1)

  • I can't open itunes 7.5, it hangs at setup wizard, can you stop this?

    I've just downloaded itunes 7.5. It goes through install, says it's installed correctly, then when I open itunes, it hangs at the itunes setup assistant. The setup step is "download album artwork". I can't click ok or cancel and the only way to get r

  • Inventory Movement Types in 6.0

    Hello - We are upgrading to ECC 6.0 and are unsure what to do about losing the config for former transaction OFBW; where we indicated what inventory movement types were budget relevant.  In our 6.0 test client we tested all the goods issue movement t

  • I am unabele to create nodes to existing xml file

    I want to append and update the nodes and attributes to existing xml file. presently am using dom api, am i do that with dom or sax,if so how can i plz ...

  • Problem in Delivery Split - BAPI_OUTB_DELIVERY_SPLIT_DEC

    Dear friends, Iam facing a problem on Delivery Split My Requirement : I have a delivery A with Item 000010 and Batches 10,20,30,40,50 in ERP system. I have a third party system which wil create a new delivery B for this Original delivery A and associ