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.

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 image in the template builder plug-in does not work

    Hi all,
    The documentation says:
    Direct Insertion
    Insert the jpg, gif, or png image directly in your template.
    +...This works obviously+
    URL Reference
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{'http://image location'}
    For example, enter: url:{'http://www.oracle.com/images/ora_log.gif'}
    +...This works too when I hardcode an url as url:{'http://www.google.com.tr/images/firefox/mobiledownload.png'}+
    Element Reference from XML File
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{IMAGE_LOCATION}
    where IMAGE_LOCATION is an element from your XML file that holds the full URL to the image.
    +...This, however, does not work.+
    I use Apex' report query tool and My query is like
    select 'http://www.google.com.tr/images/firefox/mobiledownload.png' IMAGE_LOCATION from ... (a single result set for my template)
    the xml data is generated with an IMAGE_LOCATION tag. I load it to word template plug-in. The Url successfully displays in the report if I make it a plain-simple field.
    But when it's in the image format->web->alt text as url:{IMAGE_LOCATION} no image displayed.
    I need to keep this design procedure simple so a simple word user could design a report via using just template builder plug-in. I don't wish to explore the xsl-fo area...yet.
    Could you tell me why I can't get this url:{IMAGE_LOCATION} to work?
    Regards
    PS: My BI version: 10.1.3.4.1
    Edited by: oeren on Jun 8, 2011 12:28 AM

    Oeren,
    I stumbled across this little tidbit buried in the BI Publisher forum: Dynamic Images in rtf
    Glad you are up and running!
    Joshua

  • Dynamic Order By on Report Builder 10g

    Hi,
    How can I do a dynamic order by clause using user parameters on Report Builder 10g? I need to set dynamically the column and the direction on the clause.
    Thanks.
    Bruno Galletti
    Brazil.

    Hi Bruno / Rainer,
    I am implementing the same solution, and after adding the lexical parameter reference in the SQL statement and calling the report from Oracle Forms the report failed with the following error on the report server:
    Terminated with error: <br>REP-300: missing expression select wcsr_no , wcsr_date , wcsr_rec_week_zone , wcsr_loc_house_num || ' ' || wcsr_loc_pre_dir || ' ' || wcsr_loc_street_name || ' ' || wcsr_loc_street_type || ' ' || wcsr_loc_post_dir || ' ' || wcsr_loc_unit || ' ' || wcsr_loc_city || ' ' || wcsr ==>
    No change has been done to the SQL statement except adding the &p_orderby parameter at the end of the query.
    Any suggestions? Are all parameters defined as "bind" parameters on the Repotr Object Navigator.?
    Thanks
    Gabriel Aguirre
    [email protected]

  • 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

  • JSP graph image works in Reports Builder but not in JDev9i

    Robin,
    None of these changes work. What else should I check?
    In the rwservlet.properties file (not rwserver.properties **)
    I changed #IMAGEURL=http://<web_server_name>:<port_num>/reports/rwservlet
    to IMAGEURL=C:\Oracle\Oracle9iDS2\reports\cache\
    or
    IMAGEURL=http://<web_server_name>:<port_num>/servlet/oracle.reports.rwclient
    .RWClient
    [IMAGEURL=http://163.249.38.151:8988/servlet/oracle.reports.rwclient.RWClient]
    [IMAGEURL=http://163.249.38.151:8888/servlet/oracle.reports.rwclient.RWClient]
    Would my localhost name and http port be the in-process JDeveloper OC4J listener?
    Also my ports keep being reassigned (up one number) when I terminate the embedded OC4J server and run the JSP again. (That is what you meant by restart the server, right?) from 8988 to 8989 to 8990 etc.
    John Williams
    Hi John,
    The reason that you aren't seeing that graph in JDeveloper is that rwservlet
    isn't available with the JDeveloper in-process OC4J listener. The OC4J
    listener is the minimum requirement. In addition, Reports forces the graph
    to be retrieved via the Reports server for security reasons. Ie: you
    shouldn't be able to get at graph images simply by knowing their URL. In
    the Reports builder environment, security is not the issue so there is a
    direct reference to the file.
    Now, when you're running from JDeveloper, you need to tell Reports how it
    should configure the URL. Reports runs in a secure mode by default to
    retrieve the images and, since JDeveloper is calling it as a through a Web
    listener, it is responding to a normal request and hence forcing the image
    to be retrieved via rwservlet.
    To tell Reports to access images directly or through another listener, you
    need to alter the %ORACLE_HOME%\reports\conf\rwserver.properties file and
    uncomment and change the following line: **
    #IMAGEURL=http://<web_server_name>:<port_num>/reports/rwservlet
    to
    IMAGEURL=C:\Oracle\Oracle9iDS2\reports\cache\
    Or
    IMAGEURL=http://<web_server_name>:<port_num>/servlet/oracle.reports.rwclient
    .RWClient
    Where <web_server_name> and <port_num> are the values of the in-process
    JDeveloper OC4J listener.
    You will need to re-start the Reports server. This should generate the
    appropriate link to the image when run from JDeveloper.
    When you deploy your application through a standard iAS OC4J instance
    containing the Reports Servlet, this IMAGEURL entry should again be
    commented out. Since the servlet is available in this iAS OC4J instance,
    the images will appear when referenced through rwservlet.
    Robin.
    When I leave the server parameter attribute out my GraphReport.jsp runs
    from JDev9i (using the same server as Reports Builder). The only thing
    missing now is the graph after my report. It shows up as a small square
    image tag.

    I found out the answer to both of my problems.
    1) for the missing graph image
         In the documentation link below I found a pdf file that gave the details.
    In the rwservlet.properties file in the IMAGEURL attribute
    the part that was missing is after the port #.
    IMAGEURL=http://<host>:<port>/<Workspace>-<Project>-context-root
    /servlet/oracle.reports.rwclient.RWClient
    2) for the port conflict - switch from the 'ojvm' virtual machine to 'hotspot'
         so that the embedded OC4J server is killed when it is terminated.
    I found these answers under Oracle Technology Network > documentation
    at http://otn.oracle.com/docs/products/reports/content.html
    Development Tools
    Reports Developer
    Oracle9i Reports Release Notes (pdf file)
    1.19 Oracle JDeveloper Integration
    1.19.2 Graph Not Appearing in Oracle JDeveloper
    When running a JSP report with the rw:graph tag in Oracle JDeveloper, the image is not visible in the browser. To fix this problem, set the IMAGEURL in the rwservlet.properties file in ORACLE_HOME/reports/conf:
    IMAGEURL=http://<host>:<port>/<Workspace>-<Project>-context-root
    /servlet/oracle.reports.rwclient.RWClient
    1.19.3 Reports In-process Server
    If the Java Virtula Machine (JVM) is set to ojvm, minimal, or vanilla in Oracle JDevelopers Virtual Machine settings (Project Settings -> Runner -> Virtual Machine), the rwservlet's in-process server is not killed when JDevelopers embedded OC4J server is terminated. As a result, a port conflict occurs the next time that OC4J is started.
    To avoid this problem, do one of the following:
    Set the JVM to Java Virtual Machine to hotspot.
    Disable the in-process server in ORACLE_HOME/reports/conf/rwservlet.properties and
    use the standalone Reports Server instead.
    John Williams

  • 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

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

  • 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

  • How to add a dynamic table name in Report Builder Query ?

    I have some problem while creating a report in report builder 6i.
    My data is managed as in tables like this abc_012006, abc_022006 etc , so I want to query data according to the month user have selected from the parameter form. Let suppose if user entered 012006 as month year then data must be fetched from abc_012006.
    Can any one tell me the appropriate tip for this problem.
    Message was edited by:
    [email protected]

    Hello,
    Once you get the Data Set create save it as XML and then create a new report off the XML file. Then you can set the data set to the report and the XML is not required any more.
    First, to be able add fields to a report you need to use RAS. Report.Engine doesn't have the ability.
    If you search in this forum you will find lots of examples on how to...
    If you want to create the report then see these RAS samples:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
    Don

  • Is there a way to rotate an extrnal image in the report builder?

    hello,
    my current format of this pictures is WMF. 
    i want rotate an image by a condtion, is it possible?

    Hi oren,
    By design, the image control only supports BMP, JPEG, GIF, PNG and X-PNG image formats in Reporting Services. Reporting Services doesn’t support display WMF format image. Besides, there is no such property that can rotate the image in the report, let alone
    based on some conditions.
    Personally, if you have any concern about this, please submit a feedback at
    https://connect.microsoft.com/SQLServer/Feedback. Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn
    about and contribute to exciting projects.
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

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

  • Dynamic Query in Report Builder

    HI
    I have a doubt:
    I need to receive a parameter in my report and I need this parameter in the query, that means, I need to create a dynamic query depending on the value that I receive in one of the parameters that has my report.
    I tried to use the resource of Searching by Reference Cursor tool, it is a blue circle in the Data Model View of Report Builder.
    When I click this tool, I have an initial code, It is:
    function QR_1RefCurDS return <RefCurType> is
    begin
    end;
    In PL/SQL I tried to create to test and to play, this code:
    Note: If you want to try only to test, it is simple and works:
    create or replace package TEST_REFCURTYPE as
    type refcurtype is ref cursor;
    function TEST_REFCURTYPE (P_DATE_TO nvarchar2) return refcurtype;
    end;
    create or replace package body TEST_REFCURTYPE as
    function TEST_REFCURTYPE (P_DATE_TO nvarchar2)
    return refcurtype is
    refcur refcurtype;
    mysql varchar(1000);
    begin
    If P_DATE_TO is not null then
    mysql := 'select '''|| P_DATE_TO ||''' from dual';
    else
    mysql := 'select sysdate from dual';
    end if;
    open refcur for mysql;
    return refcur;
    end;
    end;
    The problem is to pass this example of code to the function QR_1RefCurDS, I do not have a place to make reference to the type:
    type refcurtype is ref cursor;
    I tested the Unit Program in the Report Builder but it did not work, because all the code I try to write and create, for example in the Event BEFORE REPORT, it opens  Funcion( ) …., and I can not make reference to the type refcurtype inside a Function( ).
    Would you help me please?
    Or there is another way to make a dynamic query in the Report Builder?
    Sorry for my English, I am a Brazilian living in Spain.

    Hi,
    you can use lexical parameters in your queries. Instead of a ":" use in the query before the parameter a "&". Then the parameter stands for a part of the query and not for a value (Bind parameter). In the before report trigger you can set this parameters. They can contain parts of SQL like order or where. Make sure that the default value for this lexical parameters are set to get a valid query.
    SELECT ENAME, &p_column as COL2 FROM EMP &p_order
    and in the trigger something like
    IF :p_which_column = 1 THEN
    :p_column := 'SAL'
    ELSE
    Saludos
    Rainer

  • 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

Maybe you are looking for