Focal Point
[CLOSED] REG:PDF Image and APPROOT/EDAPATH

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

January 14, 2019, 03:48 PM
srajeevan
[CLOSED] REG:PDF Image and APPROOT/EDAPATH
Hi,

My report displays in HTML/PDF/AHTML/EXCEL formats.
I use style sheet to display images in PDF out format.
But i am not sure from where the images is coming as i have several application directories with images(same image name) over the course of development by different developers.

Here is my define field which i use:

ICON_PATH_PDF/A500V=
IF TYPE_ID IN (9001,9002,9004) THEN 'pd1.png' ELSE
IF TYPE_ID IN (48000,50000) THEN  'pd2.png' ELSE
IF TYPE_ID IN (52000,52002,52003) THEN 'pd3.png'  ELSE
IF TYPE_ID EQ 54002 THEN 'pd4.png' ELSE
IF TYPE_ID IN (52000,52002,52003) THEN 'pd5.png'  ELSE
'pd6.png';


I have placed the correct updated images in an application directory called
 /updated/images/ 
.
But when i give the path as
 /approot/updated/images/ 
with the images file,it doesn't work.

As per my research application fetches the images from the default APPPATH/EDAPATH ,but i dunno where it is.
How can i provide my correct path to my directory ?
Any help will be appreciated.?

This message has been edited. Last edited by: FP Mod Chuck,


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
January 14, 2019, 04:06 PM
Waz
Just a note about how images are added.

PDF, images are pulled from the APP search path

IF you want to know where the image comes from on the reporting server, you can use WHENCE to find out.

IF you put your images on the reporting server in a particular APP folder, then make sure you add it to the search path with either APP PATH ... or APP PREPENDPATH or APP APPENDPATH.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

January 14, 2019, 05:08 PM
srajeevan
Hi Waz,

I set my APP PATH using GUI by right clicking on the directory in which the fex is located and selected two application directory.
directory1 : where all my different synonyms are located and
directory2 : images are stored

When i run
 APP SHOWPATH 
,i can the two directories at the top one after another.

Then the Define is as below;
ICON_PATH_PDF/A500V=
IF TYPE_ID IN (9001,9002,9004) THEN 'directory2/images/pd1.png' ELSE
IF TYPE_ID IN (48000,50000) THEN  'directory2/images/pd2.png' ELSE
IF TYPE_ID IN (52000,52002,52003) THEN 'directory2/images/pd3.png'  ELSE
IF TYPE_ID EQ 54002 THEN 'directory2/images/pd4.png' ELSE
IF TYPE_ID IN (52000,52002,52003) THEN 'directory2/images/pd5.png'  ELSE
'directory2/images/pd6.png';


Still when i run this ,images are not being displayed.
Am i doing something wrong.?


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
January 14, 2019, 05:17 PM
Waz
You don't use the directory names in PDF. It will find the file in the path.

Can you post the code that adds the images ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

January 15, 2019, 02:22 PM
srajeevan
Here is the code that add the images.
  
TYPE=DATA,COLUMN=N2,IMAGE=(ICON_PATH_PDF),SIZE=(.2 .2),$


My images are inside a sub directory under the APP PATH.When i add APP PATH using GUI,i am not able to add sub directory of an application directory.
Do i have to add sub dir also to the app into the fex.?


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
January 15, 2019, 02:51 PM
Waz
For PDF don't use the directories just the file name.

WF searches the subdirectories automatically.

If there are multiple files with the same name in the subdirectories, it will take the first one found.

If that is the case, then you will probably need to use APP MAP to point to the correct directory.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!