Focal Point
[CLOSED] Add an image into sql report

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

September 03, 2009, 01:11 PM
Maria Tan
[CLOSED] Add an image into sql report
Hey;

I tried to add an logo into my sql report that will be viewed by pdf.

What i did is:

DEFINE FILE SQLOUT
IMG1/A100 = 'Razzer< !--graemlin:Razzer-->ort/approot/ibinccen/images/wflogo.gif" border="0">';
END

put into into

ON TABLE SUBHEAD
"
However i can not see it.

Thanks in advance for your help.


-Maria

This message has been edited. Last edited by: Kerry,


====================
Production: WebFOCUS 7.1.1 on Window 2003
WebFOCUS 7.1.1 Client on HP-UX on WebLOGIC 8.1 sp4
Dev: WebFOCUS 7.6.4 on Window 2003
WebFOCUS 7.1.1 Client on HP-UX on WebLogic 8.1 sp4
September 03, 2009, 01:31 PM
Cyril Joy
I think you can HOLD the SQL out and do the same.


Regards,
Cyril Joy.

WF Production 8008 on Linux.
September 03, 2009, 01:44 PM
Francis Mariani
1) For PDF you have to place the image in the report using WebFOCUS Style Sheet commands
2) The image has to be located in an App folder that is in the App path, and it cannot be in a sub-folder.

I copied wf_logo.gif to App folder ibisamp (which is in my App Path):

TABLE FILE CAR
SUM SALES
BY COUNTRY
BY CAR
ON TABLE HOLD AS SQLOUT
END

TABLE FILE SQLOUT
PRINT *
ON TABLE SUBHEAD
""
ON TABLE SET STYLE *
TYPE=TABHEADING, IMAGE=wflogo.gif, $
ENDSTYLE

ON TABLE PCHOLD FORMAT PDF
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
September 04, 2009, 04:19 AM
Tony A
Styling generally is not possible on SQLOUT unless it is a hold file produced from another TABLE FILE (as per Francis).

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 
September 04, 2009, 08:17 AM
GamP
And it is also of importance to mention that, for PDF, you'll have to use the HEADING to place the image. It is the only valid place to store your image.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988