Focal Point
[SOLVED] Using jpeg images as a background in pdf reports

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

April 20, 2010, 04:42 PM
rfbowley
[SOLVED] Using jpeg images as a background in pdf reports
TABLE FILE CAR
PRINT
     'CAR.ORIGIN.COUNTRY' NOPRINT
HEADING
" This shows"
"I Can put data such as the car model"
" "
"<MODEL "
" "
" "
" "
" "
" "
" "
" "
" "
" "
" "

"Anywhere I want on this overlay"

FOOTING
" "
WHERE RECORDLIMIT EQ 1
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     PAGESIZE='Letter',
     LEFTMARGIN=0.500000,
     RIGHTMARGIN=0.500000,
     TOPMARGIN=1.500000,
     BOTTOMMARGIN=0.500000,
     ORIENTATION=PORTRAIT,


TYPE=REPORT,
     IMAGE=tp001.jpg,
	 POSITION=(0.50 0.0),
	 SIZE=(7.0 10.0),

$
ENDSTYLE
END


is generating the following error:

(FOC3251) IMAGE FILE UNREADABLE OR INVALID: tp001.jpg

If I change the FORMAT to HTML, the report runs perfectly. I found a couple of old cases in the tech library that suggested opening the file in Paint and saving it with a new file name. This did not help.

Basically what I am trying to do is to position data on a form letter which has been scanned into a jpg file. Any other sugesstions on how to do this would be appreciated as well.

This client is using version 7.6.10 in all components.

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


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
April 20, 2010, 04:46 PM
Francis Mariani
For PDF, the image must be in the Application Path, which means that it should be directly in one of the folders in Drive:/ibi/apps/


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
April 20, 2010, 04:55 PM
Francis Mariani
TABLE FILE CAR
SUM
SALES
BY COUNTRY NOPRINT PAGE-BREAK
BY CAR
BY MODEL
HEADING
"WEBFOCUS REPORT"
" "
" "
"COUNTRY: <COUNTRY"
" "

ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON,
FONT='ARIAL', SIZE=8,
$
TYPE=REPORT, IMAGE=smpbkg1.jpg, $
ENDSTYLE

ON TABLE PCHOLD FORMAT PDF
END


smpbkg1.jpg is an image in folder C:\ibi\apps\ibisamp


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
April 20, 2010, 04:58 PM
rfbowley
duh... I knew that :-(

Oh well, they say that the memory is the second thing to go, and I don't remember what the first was.

Thanks Frank


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
April 20, 2010, 05:18 PM
Francis Mariani
Smiler I am not afraid of 'Francis' Smiler