Dynamic Image Location in JRC

<p>Hi !</p><p> </p><p>We are interested in using so called dynamic image location future in JRC. So far we are unsucessful, so the question is, is it supported in JRC ? We are able to get dynamic image location future working in report designer, but when our report is exported there is no image only path to it. </p><p> </p><p>We use Crystal Reports 11 R2, Java Reporting Component in JSP version.</p><br /><p>Mac</p>

I have a couple of reports working with dynamic images. CR4E doesn't support this (yet?!?), but you can still do it with the JRC. The big kicker is the syntax of your URL. If you're using a static image on a server somewhere, it should work with no problem. However, if you're using a generated image, it's a little trickier. I discovered this when I was creating a report with barcode labels. The barcodes were not getting generated. I turned on debugging and found that the JRC was screwing up my url. The url was as follows http://myserver/barcode?message=12345 67890&format=datamatrix.
In the logs, the JRC said it couldn't find an image at the url
http://myserver/barcodemessage=12345+67890&format=datamatrix. It was stripping out the ? in the url, which is kind of an important character to say the least. I messed around with it and eventually found that if I just put ?? instead of ?, the image would display correctly with the JRC. Hope this helps! If not, post what version of the JRC you're using and the URL you're using for the image location.

Similar Messages

  • Dynamic Image Location?

    Hi Experts
    How can I use Dynamic Image location in my Crystal Reports?
    Thnaks in advance
    AG

    Techy Guy,
    In the properties of your image, you can set the location as a formula. Here, you can set the path by IF-ELSE statements:
    IF {letter.city} IN ["Arnemuiden","Kleverskerke","Middelburg","Middleburg","Nieuw- en Sint Joosland","Sint Laurens"]
    OR LowerCase({letter.city}) LIKE "*joosland"
    THEN ".\Middelburg.png"
    ELSE
        IF {letter.city} IN ["Oost-Souburg","Ritthem","Vlissingen"]
        THEN ".\Vlissingen.png"
        ELSE ".\Middelburg.png"
    In this formula, the logo will be depending on a the city the recipient is in. If the city is not in one of these two options, Middelburg.png will be used as default (to have at least a logo in the letter).
    You could even use a field to define the image name:
    ".\Flags\" + {Customers_.Country} + ".png"
    will point to the directory 'Flags' in the same directory as your report is. Here, it will locate the .png file having the same name as the country field in the customers database (i.e. France.png).

  • 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

  • How to display a dynamic image file from url?

    Hey,I want to display a dynamic image file from url in applet.For example,a jpg file which from one video camera server,store one frame pictur for ever.My java file looks like here:
    //PlayJpg.java:
    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    public class PlayJpg extends Applet implements Runnable {
    public static void main(String args[]) {
    Frame F=new Frame("My Applet/Application Window");
    F.setSize(480, 240);
    PlayJpg A = new PlayJpg();
    F.add(A);
    A.start(); // Web browser calls start() automatically
    // A.init(); - we skip calling it this time
    // because it contains only Applet specific tasks.
    F.setVisible(true);
    Thread count = null;
    String urlStr = null;
    int sleepTime = 0;
    Image image = null;
    // called only for an applet - unless called explicitely by an appliaction
    public void init() {
                   sleepTime = Integer.parseInt(getParameter("refreshTime"));
              urlStr = getParameter("jpgFile");
    // called only for an applet - unless called explicitely by an appliaction
    public void start() {
    count=(new Thread(this));
    count.start();
    // called only for applet when the browser leaves the web page
    public void stop() {
    count=null;
    public void paint(Graphics g) {
    try{
    URL location=new URL(urlStr);
    image = getToolkit().getImage(location);
    }catch (MalformedURLException mue) {
                   showStatus (mue.toString());
              }catch(Exception e){
              System.out.println("Sorry. System Caught Exception in paint().");
              System.out.println("e.getMessage():" + e.getMessage());
              System.out.println("e.toString():" + e.toString());
              System.out.println("e.printStackTrace():" );
              e.printStackTrace();
    if (image!=null) g.drawImage(image,1,1,320,240,this);
    // called each time the display needs to be repainted
    public void run() {
    while (count==Thread.currentThread()) {
    try {
    Thread.currentThread().sleep(sleepTime*1000);
    } catch(Exception e) {}
    repaint(); // forces update of the screen
    // end of PlayJpg.java
    My Html file looks like here:
    <html>
    <applet code="PlayJpg.class" width=320 height=240>
    <param name=jpgFile value="http://Localhost/playjpg/snapshot0.jpg">
    <param name=refreshTime value="1">
    </applet>
    </html>
    I only get the first frame picture for ever by my html.But the jpg file is dynamic.
    Why?
    Can you help me?
    Thanks.
    Joe

    Hi,
    Add this line inside your run() method, right before your call to repaint():
    if (image != null) {image.flush();}Hope this helps,
    Kurt.

  • How do get a dynamic image to open in new browser window

    I'm using DW CS3, mysql (MAMP)   OS 10.6.2   I'm designing my online store.  I need the customer to be able to click dynamic image/thumbnails to view a larger image in a new browser pop up window 400 x 400.  An example of this functionality can be seen at :
    http://www.designpublic.com/spot-on-square-roh-dresser
    So far I can get the separate new browser window to open with the dynamic image, using the open new browser behavior, but the on click also advances to next page with the larger image. You have to press the back button to get back to the product page.  I want the customer to be able to see the product page , while viewing larger image, and then close larger image, and still have the product page open. I don't understand why 2 windows are opening.
    Thanks for the help people!
    William

    Hi
    I did look at it but, (and this is only my opinion, I do not like such effects) it is your decision.
    If you view source you will see -
    <a href="#" onclick="popWin('http://www.designpublic.com/catalog/product/gallery/id/12706/image/91883/', 'gallery', 'width=300,height=300,left=50,top=50,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="Spot on Square Roh Dresser" class="gallery-image-link"><img src="http://arcsmedia01.s3.amazonaws.com/catalog/product/cache/2/thumbnail/56x56/5e06319eda06f020e43594a9c230972d/r/o/roh_dresser1.jpg" alt="" /></a>
    Which is controlled by the javascript function
    popWin()
    which you can view using the firefoxe dev toolbar - view javascript function.
    PZ

  • 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

  • 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

  • Dynamic Image - url

    Hi there,
    I'm working with 5.6.1 version and using the following way of parameter for a dynamic image it seems to work : alternative text url:{IS_GIS} where IS_GIS is a variable coming by an sql script, here the url http://www.affecto.lt/gfx/it_group_logo.gif.
    If I'm trying out with the 10.1.3.3.3 version it won't work....
    thanks
    Gian

    Hi Gian
    Are you getting an error or just no image, is the URL outside of a firewall?
    I assume 5.6.1 version is under an Application e.g. EBS, PeopleSoft?
    With 10.1.3.3.3 you are under the standalone release? If so, are you setting a proxy server upon startup to get to the image location?
    Can you post an XML snippet and the RTF field contents?
    thanks
    Tim

  • 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

  • Acces images located on a static web applications

    HI everybody,
    I need to put images and html pages on IBM http server, I've created for that a web static application that I've deployed on the http server. I have also a dynamic web appliocation running on websphere 6 where I've puted all my jsp and servlets. I've instaled the IBM http plugin and both servers seems to be communicating correctly.
    my first question is: what is the best practices to access the images located on the webserver from my jsp files, I dont like the idea to use the full url:http://webserverIPAdress:port/staticContext/imagesFolder, is there a way to map the images folder path in my websphere application, or to tell the jsp page to go to the http server to lokup the image?????
    The second questions , do I need to do somethig to manage the redirection of the users requests: I'm planing to make my webserver as the front facade, I mean if a user asks for html page he will get it from the http webserver, but if he is requestiong a servlet how the request would be redirected to the websphere application????
    regarding the plugin if alredy installed it and i have performed the snoopServlets test comming with the IBM http server documention , it seems to be working fine, it means that both servers communicate well. so what the convenience of generation plugin functionality which is on the sever page on the websphere admin console????, do I need to that also???
    any kind of help would be appriciated , as you see I'm new with IBM servers.

    HI everybody,
    I need to put images and html pages on IBM http server, I've created for that a web static application that I've deployed on the http server. I have also a dynamic web appliocation running on websphere 6 where I've puted all my jsp and servlets. I've instaled the IBM http plugin and both servers seems to be communicating correctly.
    my first question is: what is the best practices to access the images located on the webserver from my jsp files, I dont like the idea to use the full url:http://webserverIPAdress:port/staticContext/imagesFolder, is there a way to map the images folder path in my websphere application, or to tell the jsp page to go to the http server to lokup the image?????
    The second questions , do I need to do somethig to manage the redirection of the users requests: I'm planing to make my webserver as the front facade, I mean if a user asks for html page he will get it from the http webserver, but if he is requestiong a servlet how the request would be redirected to the websphere application????
    regarding the plugin if alredy installed it and i have performed the snoopServlets test comming with the IBM http server documention , it seems to be working fine, it means that both servers communicate well. so what the convenience of generation plugin functionality which is on the sever page on the websphere admin console????, do I need to that also???
    any kind of help would be appriciated , as you see I'm new with IBM servers.

  • Dynamic image displays depending on yes / no value

    Dynamic image displays depending on yes / no value    
    I´d like to have a image showing, depending on a specific value (y/n)
    ..sorry need some help.
    I can´t get it workin.....
    <img <?php $status="n";
    if ($status == "y") {
      echo 'src="stecker_on.png" alt="yes"';
    } else {
      echo 'src="stecker_off.png" alt="no"';
    } ?> height="71" width="101" />
    The image ist not showing... ideas ?
    All I get ist some text showing:
      height="71" width="101" />
    MANY THANKS !!!!

    Presumably you mean this -
    http://mediaconsults.de/1test/steckertest.php
    And it's not clear what that is going to show me.  Looking at the code on the page -
    <html>
    <head>
    <title>Unbenanntes Dokument</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    MM_reloadPage(true);
    //-->
    </script>
    </head>
    <body background="test%20png.png">
    <div id="Layer1" style="position:absolute; left:1290px; top:246px; width:95px; height:112px; z-index:1"><img src="stecker_off.png" alt="no"height="101" width="71" /></div>
    </body>
    </html>
    I would advise you the following:
    1.  Put a valid and complete doctype on that page!
    2.  Get rid of the resize if NN4 javascript - it hasn't been needed for nearly a decade.
    3.  Fix your image code (note the missing space after "no"!
    4.  1290px is way too wide unless you want lots of people scrolling right to see things.

  • Dynamic Image Gallery AS2

    I have dipped in almost every search engine and this site to
    locate some easier way to create dynamic image gallery in Flash 8
    AS2 using ASP (as i am conversant with ASP only, although i found
    many sites suggesting PHP and XML). I'd be very greatful to u all
    if u could provide me some help in this part of my project.
    I have tried this source also but neither the source throw
    any error nor it displays the images, what could be wrong with the
    source? Please Please Please Please Please Help me!!!!!!!!
    this.createClassObject(mx.containers.ScrollPane,
    "scroller_sp", 10);
    scroller_sp. setSize (100, 300);
    swfThumbs=["imgs/img1.jpg","imgs/img2.jpg","imgs/img3.jpg"]
    this.createEmptyMovieClip("clipLoader",1);
    for(i=0;i< swfThumbs.length;i++){
    clipLoader.createEmptyMovieClip("clip"+i+"_mc",i)
    clipLoader.attachMovie("clip"+i+"_mc","clip"+i+"_mc",i+10);
    clipLoader.loadMovieNum(swfThumbs
    ,i+100);
    scroller_sp.contentPath = clipLoader;
    thanks in anticipation and regards
    raajaindra

    Hi,
    I have a picture show.
    It creates its own folder when you first upload images with
    the integrated Image uploader. Then it loads the images in with
    ASP.
    Have a look at
    http://netwings.info
    - click the B1 Image-show.
    When you are interested, the contact is at the site.
    Regards,
    Luciewong

  • CR XI R2 - Dynamic Images not working on production machine

    We are using VS2005 on windows server 2003 as our development environment. We have CR XI R2 installed there. We have a crystal report set up to use dynamic images and it is working fine. On the report, the graphic location of the picture is set to a formula which we set dynamically from VS2005.
    When we move our report and code to the production environment, the dynamic image is not showing. We have the report showing the formula, and it is the correct path to the image. What are we missing?!

    I am having the same problem.  This works no problem in development on a Vista machine but once I try and run it in production on a Windows 2003 server, it won't work.
    Did anyone ever come up with a resolution to this proble?
    I know it's not a file access rights issue as the url that I am calling is unprotected  I can call it using a simple web browser.
    http://details.planelements.com/Details/BarCode/BarCode.aspx?dataToEncode=12345
    I am pretty confident at this point (after insalling the lastest service pack) and trying everything that this is a security issue, but for the life of me I cant figure out what it is.
    To date I have tried the following:
    1)  Gave the ASP.Net account Administative rights - Didnt' work
    2)  Changed the dynamic value from usin the above specified url to a local file system file (ie. c:\temp\Image.jpg).  This worked, so I know the dynamic value code is being executed.
    3)  Uninstalled the Internet Explorer Enhanced Security settings just to make sure that something was not going on there (Since I don't have that intalled on my Vista machine) - Didnt' work
    4)  Tried calling a hard coded image locally (http://localhost/Image.jpg) - Didn't work
    At this point I don't know what else to try.  I am going to go through and see if I might need to assign some rights to the administrator account that are granted to the "local system" account, but after that I am not sure what else to try.
    Anyone else have any additional suggestions?

  • Dynamic Image Linking - HTTPS?

    Post Author: GPINC
    CA Forum: General
    We tried to use the dynamic image linking feature in Crystal 11 but it doesn't seem to like the links to our secure site (https). We moved the images to a non-secure http site and it worked fine. Since we don't want to keep the images on the http site, is there something we can do to make the https links work? Thanks in advance.

    Hi Ted,
    I'm not sure I understand your question fully but I'll try give more info.
    I have a parameter called Logo. The value of that parameter is a https url.
    The report loads and the image is not present.
    When I enter the url into a web browser the image loads correctly so the URL is correct.
    If I change the url to a http location it will display in the report.
    In Firebug I can see a request like this:
    https://localhost:8080/WebApp/CrystalReportViewerHandler?dynamicimage=crystal124058671923846987.png
    Firebug seems to think it has returned a blank image of size 262 * 262. The image I request is 113 * 113.
    When I use http the request is this:
    http://localhost:8888/WebApp/CrystalReportViewerHandler?dynamicimage=crystal12405854284818789047937565519495.png
    It returns the correct image.
    If I can give more info please let me know. I can just use a http location, that's no problem. Perhaps certs is causing it to not work.
    Regards,
    Patrick

  • Dynamic Image Marker

    Dears,
    Is it possible to create dynamic image marker theme? for example, I have a geometry table which contains the location of schools and universites, i would like to show different marker for each type. the geometry table has a code field (S: for school and U: for university). is it possible -some how- to dynamically change the marker based on the code value?
    Tahnk you

    You can either use an advanced style or, in your javascript, a layout customizer that looks at attributes stored in the FOI array.

Maybe you are looking for