Focal Point
EXL2K - Problem with Compound Report and Image

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

August 25, 2005, 03:47 PM
Francis Mariani
EXL2K - Problem with Compound Report and Image
I am placing an image in the Report Heading of a compound Excel 2000 report. The image does not get placed. If I run the two reports individually, the image does get placed.

I smell a bug.

SET PAGE-NUM=OFF
-RUN

DEFINE FILE CAR
HEADER_IMG/A100='<img src="/approot/ibinccen/images/wflogo.gif" border="0" alt="WebFOCUS">';
END
-RUN

SET COMPOUND=OPEN
-RUN

TABLE FILE CAR
SUM SALES
BY COUNTRY
HEADING
"Sales Report"
" "
ON TABLE SUBHEAD
"<HEADER_IMG"
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Sales', $
TYPE=HEADING, STYLE=BOLD, COLOR=BLUE, $
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END
-RUN

SET COMPOUND=CLOSE
-RUN

TABLE FILE CAR
SUM DC
BY COUNTRY
HEADING
"Cost of Goods Sold Report"
" "
ON TABLE SUBHEAD
"<HEADER_IMG"
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Cost', $
TYPE=HEADING, STYLE=BOLD, COLOR=BLUE, $
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END
August 30, 2005, 08:48 AM
Pete
Hi Francis,

Yes i also think its a bug , cause i've been trying to get it working for quite some trime , but in the end i just gave up and left the image
out of it.

Peter
August 30, 2005, 02:35 PM
Francis Mariani
I absolutley do not understand why we cannot add an image to a heading in an Excel report via the WebFOCUS style sheet, like we can in a PDF report.

The goal for IBI should be to enable us to use the same WebFOCUS styling for all formats of reports, HTML, Excel, PDF, Word, etc.
September 06, 2005, 09:52 PM
k.lane
Francis,

I'll see if I can get the time to put together an example for you using CAR. I am working on a workbook right now that has four tabs, the first of which has two images imbedded in a heading.

Ken
September 06, 2005, 10:45 PM
k.lane
Francis,

This works for me:

SET COMPOUND = OPEN

DEFINE FILE CAR
IMG1/A100 = '<img src="http://servername/approot/ibinccen/images/wflogo.gif" border="0"></img>' ;
END

where servername is the server name

TABLE FILE CAR
HEADING
" "
" "
"<IMG1"
" "
" "
SUM SALES
BY CAR
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TITLETEXT='REPORT1',$
ENDSTYLE
END

SET COMPOUND = CLOSE

TABLE FILE CAR
SUM SALES
BY CAR
ACROSS COUNTRY
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TITLETEXT='REPORT2',$
ENDSTYLE
END

Ken
September 07, 2005, 04:03 AM
Francis Mariani
Ken,

The problem is that I cannot get the Header image in both reports of the compound report - it does not display in either. If I put it in one, it works.

Thanks.
September 07, 2005, 01:59 PM
k.lane
My apologies for the misunderstanding. However, that being said, I placed the same image in both reports and it appeared in both worksheets in the same workbook.

SET COMPOUND = OPEN

DEFINE FILE CAR
IMG1/A100 = '<img src="http://servername/approot/ibinccen/images/wflogo.gif" border="0"></img>' ;
END

TABLE FILE CAR
HEADING
" "
" "
"<IMG1"
" "
" "
SUM SALES
BY CAR
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TITLETEXT='REPORT1',$
ENDSTYLE
END

SET COMPOUND = CLOSE

TABLE FILE CAR
HEADING
" "
" "
"<IMG1"
" "
" "
SUM SALES
BY CAR
ACROSS COUNTRY
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TITLETEXT='REPORT2',$
ENDSTYLE
END

I know this might be a little disheartening, but the above did work for me.

Ken
January 23, 2007, 09:57 AM
InsideTGT
Ok, how come I can't get this simple example to work - single report with no styling:

DEFINE FILE CAR
IMG1/A100 = '<img src="http://webfadh.target.com:/wfrimg/rw07.gif" border="0">' ;
END
TABLE FILE CAR
PRINT
MODEL
SEATS
HEADING
" "
"<IMG1 "
" "
" "
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
END

When it runs, the image is not visible, and only appears when I click on its placeholder and select "Reset Picture" from the picture toolbar. Even so, it disappears again after scrolling away or doing print preview. Help!!
January 23, 2007, 10:11 AM
Francis Mariani
I never got it to work in a compound report, but it should work in a simple report.

You don't mention which version you're working in.

Here's a simple report that DOESN'T work!!!

DEFINE FILE CAR
HEAD_IMG/A60 = '<img src="/approot/ibinccen/images/wflogo.gif">';
END
TABLE FILE CAR
SUM
SALES
BY COUNTRY
HEADING
"<HEAD_IMG"
ON TABLE PCHOLD FORMAT EXL2K
END

Comment the ON TABLE PCHOLD FORMAT EXL2K line and it works!!! I can't explain this.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
January 23, 2007, 10:15 AM
Francis Mariani
It looks like, for Excel 2000, it works when you use an absolute image url:

DEFINE FILE CAR
HEAD_IMG/A100 = '<img src="http://ocdt70070610:8080/approot/ibinccen/images/wflogo.gif">';
END
TABLE FILE CAR
SUM
SALES
BY COUNTRY
HEADING
"<HEAD_IMG"
ON TABLE PCHOLD FORMAT EXL2K
END



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
January 23, 2007, 10:18 AM
InsideTGT
We're on Webfocus 7.1.4 and Excel 2003, sorry for not mentioning that. When running from my desktop computer (same versions), everything ran fine, it's just my laptop that has issues. I'll see if I'm missing some patches.
January 23, 2007, 11:16 AM
Tony A
The thing I find disappointing is that the image is not able to be positioned in the heading Frowner Another reason why I pursuade Clients not to have images in Excel output - seems to get agreement Smiler

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
January 23, 2007, 12:19 PM
Francis Mariani
T, absolutely agree.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server