Dynamic image column in report

Hi
I want to display either a vaue of Y or (better) a small image next to each row in a standard SQL report, but only display it if any one of 6 other column values are not null
Can anyone advise how please ?
I have looked at adding a derived column based on a condition but that does not seem to do it, and I can't see where to add a default value of Y.

Hi,
[Edit] Have you tried this :
SELECT id, column1, column2, column3, column4, column5, column6,
       DECODE
          (column1,
           NULL, DECODE (column2,
                         NULL, DECODE (column3,
                                       NULL, DECODE
                                                 (column4,
                                                  NULL, DECODE
                                                          (column5,
                                                           NULL, DECODE
                                                                   (column6,
                                                                    NULL, 'Y',
                                                                    'N'
                                                           'N'
                                                  'N'
                                       'N'
                         'N'
           'N'
          ) AS check_null_columns
  FROM my_tableIf you prefer to display image, try to remplace 'Y' value by '< img src="your_source" ... >'.
Hope this helps,
Gregory

Similar Messages

  • Dynamic Images in PDF Report

    Hi,
    I want to create Badges from employee table (ID, NAME, JOB_TITLE, PHOTO). I downloaded and installed a demo application "USING DYNAMIC IMAGES IN PDF REPORT". It works fine with smale images < 20K. I'm getting the following error for images > 20K :
    "ORA-06502: PL/SQL: numeric or value error: raw variable length too long"
    it seems like a buffer problem.
    could you pls help to solve this problem
    Thanks,
    Ribhi

    Hi Carsten
    That was exactly* I was looking for. Maybe I should Google more in German ;-)
    The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
    Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
    Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
    After moving the image inside the group....it works great!
    (One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
    @Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
    The way I use it now (very similar to Carsten's description) there is no limit....
    Thank you all!
    Roel

  • Dynamic Images in Crystal Reports

    I have a report with Dynamic Images. I am able to run the report but once I try to export it or try to browse through the pages I get the following error:
    Application popup: Crystal Reports - [Inventory Graphics Report.rpt]: crw32.exe - Application Error : The exception Integer division by zero.
    (0xc0000094) occurred in the application at location 0x2c03a410.

    Hi Don,
    I have read your response 10 times, but I don't really understand it.
    "Your only option is to use the Insert OLE Object or picture into the report" - fine, but how is this achieved from a dataset?
    "CR will not display BLOB fields as pictures" - fine, but maybe I used the word BLOB badly. The dataset column datatype is "byte[]". Will CR display byte[] columns as pictures?
    "You can use a database field to point to which picture file to use, then you won't be using up valuable memory space importing the images into your data set. And the Logo's now dynamic...." - this seems to suggest that the database field is a string storing the file location on disk. Yes? I don't care about memory space in this case and I'm happy to load a binary file into a byte[] column if there is a way of displaying it.
    So, if I understand correctly, you're suggesting the dataset contain a table.row.column which stores the filelocation. How do I convert that to display as a picture (dynamically)?
    Robert

  • Using Dynamic Images in PDF Reports

    There are a number of threads in the forum where we talked about dynamically including images in PDF reports before. In order to illustrate one technique you can use for doing this, I put together a sample application that illustrates how to dynamically include images that are stored in BLOB columns. I installed the application on apex.oracle.com and made it available for download and local install. You can find the link and login information for this application as well as the download link here:
    http://marcsewtz.blogspot.com/2008/06/one-question-about-pdf-printing-feature.html

    Based on a discussion we had today in another thread, I think it makes sense to add to this thread that the XSL-FO snipped used to get BI Publisher to render images is used when referencing images in a report column, e.g. you included them in your RTF layout using the BI Publisher Desktop Insert->Table option. In this case, the column is referenced with “value-of select”:
    <fo:instream-foreign-object content-type="image/jpg">
    <xsl:value-of select="LOGO"/>
    </fo:instream-foreign-object>
    On the other hand, if you want to dynamically include a company logo, or other data that’s not necessarily repeating, e.g. there’s only one value, then you would use the BI Publisher Desktop Insert->Field option . And you would reference your field as follows:
    <fo:instream-foreign-object content-type="image/jpg">
    <?LOGO?>
    </fo:instream-foreign-object>
    So in this case LOGO refers to either a single-value field, or a single-row report column value.
    Regards,
    Marc

  • How to insert a dynamic image in a report

    Hi,
    I want to insert the image of a student in a report toghether with all other student's data. The image's file name is in a field of the students' table and the file is stored in a directory of the web application. I am using Visual studio 2010 and the reports are prepared with Crystal Reports 2008 (full product). At design time, when I try to insert an image on the report, it immediately asks for an image file on the computer, so I cant figure out how to insert an image whose path and file name come from a data source.
    Thank you

    Hi Don,
    As I said, when I insert any field in the report, say for instance the Student ID, and then link it to a database field containing the name of the image file to display (I have to concatenate the path to this file name as well), it first shows the report with the Student ID. If I click on it, because of the hyperlink defined at design time, it opens the file (an image in this case) in Internet Explorer, not on the report.
    The same happens if I put an image as an object on the report at design time. In this case as soon as I put the image object on the report it forces me to select an initial image to show on the report. Anyway, I define an hyperlink for this image, pointing it to the image file of the Student, using the database field containing the image file name. When I show the report I see the initial image I was forced to use and when I click it, the hyperlink takes me to the right student image, but even in this case it shows me the right image opening an Internet Explorer session and not on the report. On the report the initial image is still there and never changes.
    What I actually need is a way to put the student's image on the report as soon as it shows the other student's data, as the name, age, ***, and so on, without having to click somewhere to show the student's image.
    Thanks

  • Dynamic images in crystal reports for VS 2008

    The company logo scenario. The solution I'm trying unsuccessfully to implement entails:
    - the logo is not stored in the database, but resides locally on disk
    - strongly typed dataset generated by stored proc in sql server 2008
    - column defined in a dataset table as sqldatatype.binary, null value
    - populate dataset in .net by calling the proc
    - edit the byte[] column and replace null with a binary image
    - push the data into the report
    - print the report to pdf from a web application
    Everything works fine, no errors, but if I try and display the blob in the crystal report, nothing prints. If I remove the blob without modifying any of the above code, everything prints (all tables/rows).
    I have tried cloning the dataset and substituting the binary file into the appropriate column, thinking that the original might be READONLY, but the same result (prints perfectly if I don't try and show the blob).
    Robert

    Hi Don,
    I have read your response 10 times, but I don't really understand it.
    "Your only option is to use the Insert OLE Object or picture into the report" - fine, but how is this achieved from a dataset?
    "CR will not display BLOB fields as pictures" - fine, but maybe I used the word BLOB badly. The dataset column datatype is "byte[]". Will CR display byte[] columns as pictures?
    "You can use a database field to point to which picture file to use, then you won't be using up valuable memory space importing the images into your data set. And the Logo's now dynamic...." - this seems to suggest that the database field is a string storing the file location on disk. Yes? I don't care about memory space in this case and I'm happy to load a binary file into a byte[] column if there is a way of displaying it.
    So, if I understand correctly, you're suggesting the dataset contain a table.row.column which stores the filelocation. How do I convert that to display as a picture (dynamically)?
    Robert

  • Dynamic images in CF report builder 7

    Hi :-)
    Im pulling my hair out over an issue with cfreport builder 7
    and the abillity to dynamically display images.
    I can display images dynamicaly fine using this method:
    application.coverimage & "/" & query.image
    The problem is ive no idea how to say " if there is no image
    available then display noimage.jpg"
    ive played with the iif and fileexists functions but cant
    seem to get it to work within the report builder.
    If using cf report builder 8 the answer is simple, you can
    change an attribute of the image to say "on error do not display
    image" but i really need to do this with CF7.
    Can anyone help please? :-)

    I just found this solution and it helped me, and then I found a nice way to show your "noimage.jpg". You make a report function which sets a persistent variable containing the path to your image (I use the Request scope, so "Request.imagePath" for example). The variable is set to your "noimage.jpg" if it can't find the image path. You can pass parameters to the function from your query, if you wish. The function itself always returns "true". Call this function in the "Print when" property (remember, it's always true so it will always show), and the persistent variable is used as the image path. That way you can have your proper image or your default image show.
    I almost gave up on the CF Report Builder -- the report functions made it cool enough to keep using.

  • Need help to show a thumbnail image column in report

    Hi, Gurus:
    I need to display a column of thumbnail images in a classical report. I follow the thread https://kr.forums.oracle.com/forums/thread.jspa?threadID=2201667
    I am using APEX 4.1, Oracle 11gR2
    Here is my table:
    CREATE TABLE "SORS"."SOR_IMAGE"
       (     "IMAGE_ID" NUMBER(10,0),
         "OFFENDER_ID" NUMBER(10,0) NOT NULL ENABLE,
         "IMAGE" BLOB CONSTRAINT "SOR_IMAGE" NOT NULL ENABLE,
         "THUMBNAIL" BLOB,
         "MIME_TYPE" VARCHAR2(50 BYTE),
          CONSTRAINT "SOR_IMAGE_PK" PRIMARY KEY ("IMAGE_ID")
    )Here is my procedure:
    create or replace
    procedure dl_sor_thumbnail (p_offender_id IN NUMBER) as
       v_mime_type VARCHAR2(48);
       v_length NUMBER;
       v_name VARCHAR2(2000);
       v_image BLOB;
    BEGIN
      SELECT 'IMAGE/JPEG', dbms_lob.getlength(thumbnail), thumbnail
      INTO v_mime_type, v_length, v_image
      FROM sor_image
      WHERE offender_id = p_offender_id
      and image_id = (select max(image_id)from sor_image where offender_id = p_offender_id) ;
    -- setup the HTTP headers
    owa_util.mime_header(nvl(v_mime_type, 'application/octet'), FALSE);
    htp.p('Content-length: '||v_length);
    --htp.p('Content-Disposition: attachment; filename="' || substr(v_name, instr(v_name,'/') + 1) || '"');
    --htp.p('Content-Disposition: attachment; filename="'somemmmmmfilename.jpg'");
    -- close the headers
    owa_util.http_header_close;
    -- download the Photo blob
    wpg_docload.download_file (v_image);
    END dl_sor_thumbnail;here is my report:
    select distinct 'MAP', '<img src="#OWNER#.dl_sor_thumbnail?p_offender_id='||so.offender_ID||'"/>' detail,
    so.doc_number as "DOC Number", so.offender_id as "Offender_ID", so.first_name||' '|| so.middle_name||' '||so.last_name as "Offender Name",
    so.checksum as "checksum",
    so.last_name as "Last Name",
    so.first_name||' '|| so.middle_name as "First Name",
    (select sc1.description from sor_code sc1 where sc1.code_id=so.race) as "Race",
    (select sc2.description from sor_code sc2 where sc2.code_id=so.sex) as "Sex",
    (select sc8.description from sor_code sc8 where sc8.code_id=so.hair_color) as "Hair Color",
    (select sc9.description from sor_code sc9 where sc9.code_id=so.eye_color) as "Eye Color",
    replace(replace(nvl2(sl.address1, sl.address1||' '||sl.address2 ||' '||sl.city ||' '||sl.county||' '||(select sc3.description from sor_code sc3 where sc3.code_id=sl.state)||' '||sl.zip, '-'),'#'),',') as "Address",
    replace(replace(nvl2(sl.physical_address1,sl.physical_address1||' '||sl.physical_city ||' '||sl.physical_county||' '||(select sc4.description from sor_code sc4 where sc4.code_id=sl.physical_state)||' '||sl.physical_zip, '-'),'#'),',')  as "Physical Address",
    sl.status as "Status",
    to_char(sl.ADDRESS1_LATITUDE) as "Address Latitude",to_char(sl.address1_longitude) as "Address Longitude",
    to_char(sl.physical_address_latitude) as "Physical Latitude",to_char(sl.physical_address_Longitude) as "Physical Longitude",
    decode(rox.habitual, 'Y', 'Habitual', '') as "Habitual",
    decode(rox.aggravated, 'Y', 'Aggravated', '') as "Aggravated"
    from sor_location sl, sor_offender so, registration_offender_xref rox, sor_last_locn_v sllv
    where rox.offender_id=so.offender_id
    and sllv.offender_id(+)=so.offender_id
    and sl.location_id(+)=sllv.location_id
    and rox.status not in ('Merged')
    and rox.REG_TYPE_ID=:F119_REG_ID
    and upper(rox.status)='ACTIVE'
    and nvl(rox.admin_validated, to_date(1,'J'))>=nvl(rox.entry_date, to_date(1,'J'))
    and (((select sc11.description from sor_code sc11 where sc11.code_id=so.race and sc11.code_id=:P5_SL_RACE) is not null ) or (:P5_SL_RACE is null))
    and (((select sc12.description from sor_code sc12 where sc12.code_id=so.sex and sc12.code_id=:P5_SL_SEX) is not null ) or (:P5_SL_SEX is null))
    and (((select sc13.description from sor_code sc13 where sc13.code_id=so.hair_color and sc13.code_id=:P5_SL_HAIR_COLOR) is not null ) or (:P5_SL_HAIR_COLOR is null))
    and (((select sc14.description from sor_code sc14 where sc14.code_id=so.eye_color and sc14.code_id=:P5_SL_EYE_COLOR) is not null ) or (:P5_SL_EYE_COLOR is null))
    and (exists ( (select sm.offender_id from sor_mark sm, sor_code sc15 where sm.offender_id=so.offender_id and  sc15.code_id=sm.code and sc15.code_id=:P5_SL_OTHER_MARKS  and sm.description is not null) ) or (:P5_SL_OTHER_MARKS is null))
    and ((exists (select sm1.description from sor_mark sm1 where sm1.offender_id=so.offender_id and upper(sm1.description) like upper('%'||:P5_TF_OTHER_MARKS_DESCRIPTION||'%'))) or (:P5_TF_OTHER_MARKS_DESCRIPTION is null))
    and ((floor(to_number(sysdate-so.date_of_birth)/365)-:P5_TF_AGE between -5 and 5) or (:P5_TF_AGE is null))
    and ((to_number(:P5_TF_HEIGHT_FEET)*12+to_number(nvl2(:P5_TF_HEIGHT_INCHES, :P5_TF_HEIGHT_INCHES, '0')-(floor(so.height/100)*12+mod(so.height, 100))) between -6 and 6) or (:P5_TF_HEIGHT_FEET is null))
    and ((so.weight-:P5_TF_WEIGHT between -25 and 25) or (:P5_TF_WEIGHT is null))and I set detail column as standard report column.
    however, the report shows no image, just an icon which indicates the image is not available. Would anyone help me on this problem?
    Thanks a lot.
    Sam
    Edited by: lxiscas on Apr 16, 2013 1:59 PM

    lxiscas wrote:
    I need to display a column of thumbnail images in a classical report. I follow the thread https://kr.forums.oracle.com/forums/thread.jspa?threadID=2201667
    Bad choice. Only one person involved in that thread knew what they were doing...and you copied from the wrong one.
    Here is my procedure:Lose it. Custom download procedures are overcomplicated and now almost never required.
    See the recommendation to use declarative BLOB support, as shown in the Thumbnail image problems.

  • Dynamic image(logo) in reports 6i

    Hi,
    I want to insert an image (logo of my company) in all my reports, from a location for example d:\abc.gif, so that if i replace the image from a new one the report show the new image (logo),
    I tried file --> import --> image already but it is static and if there is any change in logo i need to change in all my reports,
    should i save the image in a table and show it , but how , please tell,
    Note ( Report Builder 6i
    Database 9i)
    Regards

    I got the solution and writing it below for other guys,
    •     Create a table with a column type BLOB or long raw in database
    •     Save the picture in it by making a form based on the table in previous step.
    •     Write the following code in when image pressed trigger
    DECLARE
    V_FILE_NAME VARCHAR2(40);
    BEGIN
    V_FILE_NAME := GET_FILE_NAME(File_Filter=> 'JPG Files (*.JPG)|*.JPG|');
    READ_IMAGE_FILE(V_FILE_NAME,'JPG', 'block_name.image_item');
    END;
    •     In reports, create SQL Query to read that table, and assign the BLOB, Long Raw field in to the report.

  • Dynamic image report not working

    Hi,
    I am trying to create a report which has a dynamic image.
    - the report has
    a parameter: {?image_path}
    - user specifies the image location (ie. c:\image1.png)
    - the report take the image location as a parameter and change "graphic location" of the picture object.
    The following works fine in Crystal Report 11 R2, but not in .net application.
    I checked the passsed parameter value by displaying it, and the parameter value was correct.
    does anyone know why the picture object is not updated based on the value of parameter?
    Thanks,

    If you are using IIS on your local machine then that does not necessarily mean that the application has access to the root of the C drive (or your image folder).  Depending on the version of IIS you are using (IIS5 on XP and Win2k) or IIS6/7 on win2k3/2k8 there are different possibilites.
    I'll assume Windows 2003 server.  Here permissions of the application are determined by the application pool that the application is running under.  Typically this will be the 'Network Service' account which would not likely have permissions to all of the files and folders on your machine.  An easy test (to find out if its permissions) is to change the Identity used by your application pool from 'Network Service' account to the 'Local System' account, which should have access to most folders on your machine.  If this works, then its a permissions issue.
    If you are running the application directly from the Visual Studio IDE and you created your website as a 'File System' web site, then it will not use IIS but rather a personal web server called WebDev.WebServer.exe.  If this is the case, you'll see that executable in Task Manager.  This process will run under your currently logged on credentials and should have full access to the file system as would Crystal Reports designer or any Windows application you run.  If images still do not show up in this case (or the case of IIS running under the Local System account, then the next possibility is that you do not have CrystalImageHandler set up correctly in your application's web.config file. To make sure this is set up correctly then you will need to set this up as described in the [Crystal Reports Developer guide|http://help.sap.com/businessobject/product_guides/cr2008V1/en/crsdk_net_dg_12_en.zip]
    If you download this help file, search for "web.config" and look at the CrystalImageHandler section.
    If you are on Win2k8 using IIS7, then you will need to run your application pool in 'Classic' mode rather than 'Managed Pipeline' mode in order for dynamic images to show properly.
    Dan

  • Dynamic Image Displays Blank When Using In Visual Studio Project

    I am trying to simply display a dynamic image in a report. I am using Crystal Reports XI Release 2.
    I have two different environments: Local via Progress where reports are called using Crystal Viewer ActiveX, and over the web where reports are called from Open Laszlo and Visual Studio project.
    The image is set to a blank image as default, and Graphic Location Forumla loads the image from the database (site.logo_location + site.logo_filename) which results in an image http:
    www.vetinfo3.com\a.jpg.
    When I run the reports locally using the ActiveX control, it works just fine and displays the image.
    When I run over the web using OpenLaszlo, it displays a blank.
    Troubleshooting
    We are using Visual Studio 2005, which is bundled with an older version of Crystal that doesn't support dynamic images.
    To address this, I loaded Crystal XI Release 2, which updated the version in Visual Studio and enabled the Graphic Location formula field on the dev machine.
    I verified the Graphic Location field was set correctly.
    This caused a Version error, so we loaded cr_net_2005_mm_mlb_x86.zip on server and specified the Version in web.Config.
    No errors now, but when I build and publish the code, the image still displays as blank.
                From Fiddler
                   GET http://www.vetinfo3.com/mdsol1/CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_c5d6a923-293b-4f1e-8739-4e698f83b087.png
                   Creates C:\Documents and Settings\Curtis\Local Settings\Temporary Internet Files\Content.IE5\PWRUX2XW\CrystalImageHandler[1].png
                   Blank Image
    According to issues within Visual Studio, they say the fix to this is to add the <httpHandler> in web.Config, but it is already there; added when we add the viewer to the project:
    In web.Config I have some questions about this line:
        <httpHandlers>
          <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        </httpHandlers>
    There are more service packs for Crystal XI Release 2:
    crXIr2sp2_net_server_install.zip
    crXIr2sp3_net_server_install.zip
    crXIr2sp4_net_server_install.zip
    I have not loaded these yet, but the readme files do not indicate they fix any dynamic image issues.
    I am out of ideas on this; does anyone have any ideas?

    What about if you take OpenLaszlo out of the picture? E.g.; use one of our samples from here;
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    I'd recommend vbnet_web_simplepreviewreport
    Also, see [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0437ea8-97d2-2b10-2795-c202a76a5e80] article.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Need help with adding formatted text and images to Crystal Report?

    Here's my scenario:
    I have a customer statement that's generated as a crystal report and that has a placeholder for advertisement. The advertisement is mixture of formatted text and images. Until now we only had one advertisement that was always used on the report. The new requirement is that we would have a pool of hundreds of advertisements and would need to display one specific advertisement on the customer statement based on various marketing criteria. They key is that the advertisement content will be determined programmatically and cannot be hardcoded into the report. I'm using Crystal2008 with .net SDK.
    Here are the solutions I thought of, but I'm still rather lost and would appreciate your help/opinion.
    1) Pass HTML or RTF to the report
    Not really sure if this is possible and how to get it done. Also how would I pass in images? Would display formatting be reliable when exporting to PDF?
    2) Create each add as a subreport and append it programatically
    I actually have this working, but I only know how to append a new section to the end of the report and then load the subreport to the section. I have no other controll of the placement. Is there a way to dynamically load a subreport to a predefined section in the main report? How about adding a dummy subreport in the main report as a placeholder and then replacing it with a different subreport? How could I do this?
    3) Pass an Image to the report
    I would create each advertisement as an image and then would somehow add the image to the report. How would I load the image and control the placement? Could I somehow define a placeholder for the image in the main report-maybe a dummy image to be replaced?
    Thank you.

    Hello Pavel,
    I would got the third way.
    You can use dynamic images in your report.
    Just by changing the URL to the image the image can be changed.
    Please see the [Crystal Manual|http://help.sap.com/businessobject/product_guides/cr2008/en/xir3_cr_usergde_en.pdf] and search for images.
    or directly here
    [Setting a Dynamic Graphic Location Path on an Image Object|https://boc.sdn.sap.com/node/506]
    [Dynamic image and HTTP://|https://boc.sdn.sap.com/node/3646]
    [codesample for .NET|https://boc.sdn.sap.com/node/6000]
    Please also use
    [Crystal Reports 2008 SDK Documentation and Sample Code|https://boc.sdn.sap.com/developer/library/CR2008SDK]
    [Crystal Reports 2008 .NET SDK Tutorial Samples|https://boc.sdn.sap.com/node/6203]
    Hope this helps
    Falk

  • Dynamic Lead column repeats the same value

    Hi, I have a dynamic lead column with reporting groups attached to them. Also, I have date column in the data column which is also dynamic. In the layout the reporting group field shows only the first entry in the variable and repeats itself. When I enter the data and save it, data is saved in the right reporting groups...If I replace day with week(and no further changes in the layout) reporting groups show up...is it something to do with date field?
    Reporting Group       01/01/2008      01/02/2008  01/03/2008
    1                               $100                $ 120          $ 150
    1                               $110                $ 130          $ 160
    In the database it shows the second line reporting group as 2(which I want) but in the layout it shows up as 1.
    How can I make it show the correct value. Thanks,
    Bulusu

    Hi,
    When any of the dynamic lead columns or data columns you select them as dynamic, automatically the Infoobject is filled by the system and it would be greyed out. Copy the same infoobject like 0FISCPER, 0FISCYEAR and paste in the Description of the layout (for that dynamic column). Then it will pick up on its own.
    Otherwise if you put your own description like date, month and year etc. for all the columns or rows, as the case may be, it will give similar description.
    Regards,
    Ravi

  • Showing dynamic images in BI Publisher PDF report

    I defined a RTF report layout in BI Publisher. Almost done, but one requirement missing...
    I should be able to include a dynamic image (so every "object" on the report has it's own image).
    At first I embedded the base64 converted image in the XML output, but then I am running into the 32K limit. (Small pictures render fine).
    Although Marc Sewtz sort of promised in June 2008 (!) : "One issue, which we'll address in the next version of Application Express, is the 32k limit on report columns." on his blogpost http://marcsewtz.blogspot.com/2008/06/one-question-about-pdf-printing-feature.html , it still not addressed.
    So I tried to embed the image in the report using a trick described on the forum (and BIP documentation), by embedding a dummy picture and set the "Alt-text" of the picture to
    (as an example) : url:{'http://www.oracleimg.com/us/assets/oralogo-small.gif'}.
    The strange thing is, that works fine for HTML Output and Excel output, but not for Word and PDF (why it does work for Excel and not for Word is very mysterious....). And of course I need a PDF output.
    I also tried to embed a FO snippet:
    <fo:block>
    <fo:external-graphic src="url:{'http://www.oracleimg.com/us/assets/oralogo-small.gif'}" />
    </fo:block>
    But that doesn't (seem to) work on any output...
    But
    <fo:block>
    <fo:external-graphic src="D:\Users\rhartman\Documents\PrintScreen Files\Screenshot004.jpg" />
    </fo:block>
    does produce the image on the PDF output.
    So who has an idea how to solve this issue?? You'll be rewarded with a lot of pionts ;-)
    TIA
    Roel

    Hi Carsten
    That was exactly* I was looking for. Maybe I should Google more in German ;-)
    The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
    Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
    Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
    After moving the image inside the group....it works great!
    (One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
    @Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
    The way I use it now (very similar to Carsten's description) there is no limit....
    Thank you all!
    Roel

  • Standard Report & Image Column

    Hi everybody,
    I have a standard report for employees in this report there is an image column displaying the employee photo.
    Of course if there is no image in the database for the employee the report won't display anything.
    What I want is that if the image column is NULL the report will display a standard NO_PHOTO.JPG image for this employee.. is this possible??
    My select statment is simple:
    select
           "EMP_ID",
           "EMP_FIRST_NAME",
           "EMP_SECOND_NAME",
           "EMP_FAMILY_NAME",
           dbms_lob.getlength("EMP_PHOTO") "EMP_PHOTO"
    from   "T_EMPLOYEE"

    One method is to use a Dynamic Action to insert the default image when there isn't one in the report. This avoids having to modify the report query or attributes.
    h4. When
    Event: After Refresh
    Selection Type: Region
    Region: <your report region>
    h4. True Action
    Action: Execute JavaScript Code
    Fire On Page Load: Yes
    Code:
    $('#emp-report td[headers="PHOTO"]')
      .contents()
      .filter(function() {
        return this.nodeType === 3; // report cell contents is a text node, not an img element
      .replaceWith('<img src="&WORKSPACE_IMAGES.NO_PHOTO.jpg" alt="No photo">');Another is to put the logic in the query and get the image source programatically:
    select
           "EMP_ID",
           "EMP_FIRST_NAME",
           "EMP_SECOND_NAME",
           "EMP_FAMILY_NAME",
              '<img src="' || nvl2(photo, apex_util.get_blob_file_src('P2_PHOTO_FILE', employee_id), '&WORKSPACE_IMAGES.NO_PHOTO.jpg')
           || '" alt="' || nvl2(photo,  "EMP_FIRST_NAME" || ' ' || "EMP_FAMILY_NAME", 'no photo') || '">' "EMP_PHOTO"
    from   "T_EMPLOYEE"Where <tt>P2_PHOTO_FILE</tt> is the file browser item used to upload the photos.
    The Display As column attribute for the EMP_PHOTO column must be changed to Standard Report Column when using this method.

Maybe you are looking for