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
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,
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.
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.?
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 ?
Here is the code that add the images.
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.?
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.
|Powered by Social Strata|