Focal Point
[CLOSED] Print Image in The Report in 7.7.03

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9157082806

August 12, 2011, 01:11 PM
Lusheng
[CLOSED] Print Image in The Report in 7.7.03
We have similar code in many reporot programs, and they work great from WebFOCUS version 5.33 to 7.6.2. Now we are upgrading to 7.7.03, and they don't work any more. It shows Xs instead of images. I know the image files in the correct path and correct case(upper case). I tried to use \\servername\full path, it does not work either. I opened a case with IBI, but no helpful information received yet.

DEFINE FILE CAR
CNT2/I5 = CNT2 + 1;
COLOR1/A50 = '';
COLOR2/A50 = '';
COLOR3/A50 = '';
COLOR4/A50 = '';
COLOR5/A50 = '';
IMG/A50 = IF CNT2 EQ 1 THEN COLOR1 ELSE
IF CNT2 EQ 2 THEN COLOR2 ELSE
IF CNT2 EQ 3 THEN COLOR3 ELSE
IF CNT2 EQ 4 THEN COLOR4 ELSE COLOR5;
END

TABLE FILE CAR
SUM RETAIL_COST
BY COUNTRY
BY IMG
END

This message has been edited. Last edited by: Kerry,
August 12, 2011, 01:15 PM
Lusheng
My post does not show what I pasted to forum.
After = sign, it contain IMG tag, and specified the value of SRC="/APPROOT/DASHBOARD/COLOR1.GIF"
August 14, 2011, 01:43 PM
njsden
When posting sample code, enclose it using code tags (look for the </> button in the toolbar).

Question: If you use your internet browser to try and get the image directly from the web server via URL does that work?

Something like:
http://yourhost/approot/dashboard/color1.gif


Does it work? You need to verify that an approot application context is known to either your Web Server (such as IIS) or App Server (such as Tomcat), although in my past experience "approot" is usually a Reporting Server mapping (accessible via: http://yourhost:8121/approot) and not really related to the Web Server, unless both WF Server and client live in the same box.

Sorry, without knowing what your installation is like is rather difficult to help much.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.