Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] REG:PDF Image and APPROOT/EDAPATH
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] REG:PDF Image and APPROOT/EDAPATH
 Login/Join
 
Platinum Member
posted
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,


WF8202M,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 207 | Location: MI | Registered: September 13, 2017Reply With QuoteReport This Post
Expert
posted Hide Post
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.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6104 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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.?


WF8202M,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 207 | Location: MI | Registered: September 13, 2017Reply With QuoteReport This Post
Expert
posted Hide Post
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.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6104 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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.?


WF8202M,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 207 | Location: MI | Registered: September 13, 2017Reply With QuoteReport This Post
Expert
posted Hide Post
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.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6104 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] REG:PDF Image and APPROOT/EDAPATH

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.