Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [PAINFULLY SOLVED] Images in TABHEADINGs for PDFs

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[PAINFULLY SOLVED] Images in TABHEADINGs for PDFs
 Login/Join
 
Master
posted
I'm getting an error when I try to use the following, saying the image doesn't exist.

TYPE=TABHEADING,
     IMAGE=/ibi_apps/ibi_html/ls_logo.gif,
     POSITION=(+0.000000 +0.000000),
     SIZE=(1.000000 0.40000), $


However, if I take the image path and go directly to it, it works fine..
http://localhost:8080/ibi_apps/ibi_html/ls_logo.gif


Looks like the server is translating the path into the following which fails:
http://localhost:8080/ibi_apps/WFServlet?IBIMR_drill=IBFS,runItem,/ibi_apps/ibi_html/ls_logo.gif,true


What am I missing?

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



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Expert
posted Hide Post
Images referenced in WebFOCUS style commands are usually located on the reporting server, not the web server.

TYPE=REPORT,
     IMAGE=baseapp/help.jpg,
     POSITION=(+1.000000 -0.000000),
$


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Well, oddly enough, when it's an HTML report my code works, but when I switch to PDF I get an "IMAGE FILE NOT FOUND" error!

This works for HTML but doesn't work for PDF:

TYPE=REPORT,
     IMAGE=baseapp/help.jpg,
     POSITION=(+1.000000 +0.000000),
$

But this works for both HTML and PDF:

TYPE=REPORT,
     IMAGE=help.jpg,
     POSITION=(+1.000000 +0.000000),
$


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
quote:
But this works for both HTML and PDF:

TYPE=REPORT,
IMAGE=help.jpg,
POSITION=(+1.000000 +0.000000),
$


Where did you have the image located? I tried same location as the fex, the ibi_html folder, and off the root reporting server with no luck.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Expert
posted Hide Post
The fex is not in the ibi_html folder. That's a web server alias. It is possible the web server alias points to a physical folder that's on the reporting server...

baseapp is the default reporting server app folder: drive:\ibi\apps\baseapp


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
quote:
\ibi\apps\baseapp


I can't put the fex in that folder.. This is client level reporting. Humm..



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Expert
posted Hide Post
May I ask with what URL do you run the fex that is referenced in ibi_html?


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Your fex could also be located in the Repository...


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
None, I read in the help example, the image could be there.

Help On Image

image
Specifies the file name of a graphical image file. The image must exist as a separate graphic file in a format that your browser supports. Most browsers support GIF and JPEG file types.
You can specify a local image file, or identify an image elsewhere on the network using a URL. URLs can be absolute, such as, http://www.ibi.com/graphic.gif, or relative alias that can be identified to the application server or web server, such as, /ibi_apps/ibi_html/ibi_logo.gif .



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Master
posted Hide Post
quote:
Your fex could also be located in the Repository...


Yea, I tried using /public_folder/ls_logo.gif, which is public_folder is one of our folders on the reporting server and that didn't work either. I'm starting to think this is a configuration issue.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Expert
posted Hide Post
I'll tell you one thing: the rules don't apply for PDF formats.

Here's a simple question for IBI'ers Tamra and Emily (or any other IBI'er that feels like piping in): Please explain why the all-GUI generated code below does not work when the &WFFMT parameter is set to PDF?

The fex and image are in the same Repository folder.

-DEFAULT &WFFMT='PDF';
TABLE FILE CAR
SUM
     CAR.BODY.SALES
BY  LOWEST CAR.ORIGIN.COUNTRY
HEADING
" "
" "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &WFFMT.(<HTML,HTML>,<PDF,PDF>,<Excel 2007,XLSX>,<Excel 2000,EXL2K>,<Excel 2007 Formula,XLSX FORMULA>,<Excel 2000 Formula,EXL2K FORMULA>,<HTML Active Report,AHTML>,<Active Report for Adobe Flash Player,FLEX>,<Active Report for PDF,APDF>,<PowerPoint,PPT>).Select type of display output.
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
TYPE=HEADING,
     IMAGE=IBFS:/WFC/Repository/Test/FrancisMariani/ib_logo.gif,
     POSITION=(+0.000000 +0.000000),
$
ENDSTYLE
END

It shows the image when &WFFMT is HTML, but throws an error when the value is PDF.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
Yea, IBFS:/WFC/Repository/ve/PropertyLienAlert/ls_logo.gif works in HTML.. Frowner



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Expert
posted Hide Post
With PDF, the images must be on the reporting server.
With HTML they are a web reference and need to be available via the web server.

This makes it interesting, especially if you have your client installation on a different server to your reporting server installation.

Repository files are the exception as they are available both ways.


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Master
posted Hide Post
Well, I tried:
TYPE=TABHEADING, IMAGE=IBFS:/EDA/EDASERVE/public_folder/ls_logo.gif, $


That didn't work:
 0 ERROR AT OR NEAR LINE     21  IN PROCEDURE ADHOCRQ FOCEXEC *
 (FOC253) INVALID FORMAT SPECIFICATION ON LEFT HAND SIDE: A80000V
 0 NUMBER OF RECORDS IN TABLE=        1  LINES=      1
 0 ERROR AT OR NEAR LINE     96  IN PROCEDURE ADHOCRQ FOCEXEC *
 (FOC3251) IMAGE FILE UNREADABLE OR INVALID: ls_logo.gif (RC=103)
 0 ERROR AT OR NEAR LINE     96  IN PROCEDURE ADHOCRQ FOCEXEC *
 (FOC3251) IMAGE FILE UNREADABLE OR INVALID: ls_logo.gif
 (FOC3298) ERROR FOUND IN A COMPOUND REPORT
 Compound Report is TERMINATING.....



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Master
posted Hide Post
I converted the GIF to JPG and it now works..


Welcome To Focus!



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Expert
posted Hide Post
That shouldn't be happening.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
quote:
Originally posted by Francis Mariani:
That shouldn't be happening.

I agree. I protest that solution.


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report This Post
Master
posted Hide Post
I totally agree, but I've recreated the GIF thinking it might have something corrupt in it and it still errors for GIFs, but works with JPGs. Doesn't work for PNGs either. Same error.




- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Expert
posted Hide Post
Kind of surprised - we use .gif in PDF format, it is located within the Domain calling the fex:

TYPE=REPORT, IMAGE=fordham.gif, POSITION=(5.50 0.30), SIZE=(2.25 .55),$



Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Master
posted Hide Post
I cannot get this to work in App Studio -- at all.

But it works for HTML and AHTML formats if I run the fex from the WebFOCUS web interface. My test PNG image appears, no problem.

Confused


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report This Post
Master
posted Hide Post
Well, this seems to be all over the place. Possibly configuration then or browser being used. I'm using Chrome.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Master
posted Hide Post
I'm using Chrome as well, Version 50.0.2661.94 m.

When App Studio launches Chrome, the image does not appear. Here is the image html it generates:

<IMG SRC="data:image/png;base64," style='position:absolute;top:0pt;left:0pt;'>

From the WebFOCUS web interface -- where the image does show -- I see this:

<IMG SRC="/ibi_apps/WFServlet?IBIMR_drill=IBFS,runItem,IBFS:/WFC/Repository/balanced_scorecard/Common/webimages/green-button-small.png,true" style='position:absolute;top:0pt;left:0pt;'>


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report This Post
Expert
posted Hide Post
There's one or more bug involved - I can smell it/them...


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
It's odd how it only does it if it's not a JPG and launching from AS. I'm pretty sure you almost have to code that bug on purpose. Smiler



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Expert
posted Hide Post
According to the WebFOCUS v8.0.08 documentation, GIF is the only valid format for PDF:

Creating Reports With Report Painter > Styling Reports With Report Painter > Adding an Image

quote:
The image must exist as a separate graphic image file in the following formats for use in a report:

For Bitmap files (.BMP), GIF files (.GIF), JPEG files (.JPEG), JPG files (.JPG), Enhanced Metafiles (.EMF), and Windows Metafiles (.WMF), Scalable Vector Graphics (.SVG).
For HTML reports, GIF (.GIF) or JPG (.JPG).
For PDF (or PS) and PPT reports, GIF (.GIF).
Tip: Since GIF images are supported in all report formats, using GIF images ensures that your images appear whether you display your report as HTML or PDF.


And no Excel format is mentioned here...


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
This is an "inline" image... there should be base64 encoded data describing the image in this html tag:

<IMG SRC="data:image/png;base64," style='position:absolute;top:0pt;left:0pt;'>

But it's missing in action. It should look more like this:

<IMG SRC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." style='position:absolute;top:0pt;left:0pt;'>


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [PAINFULLY SOLVED] Images in TABHEADINGs for PDFs

Copyright © 1996-2020 Information Builders