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     [CLOSED] HTML Report: How to put multiple text lines in heading...

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] HTML Report: How to put multiple text lines in heading...
 Login/Join
 
Master
posted
I have coded this little fex to learn how to put an image in the heading of report in HTML FORMAT.

quote:

TABLE FILE MMDB1
SUM COMPUTE COLOGO/A92 = ''; NOPRINT

SUM COMMENT1
COMMENT2
COMMENT3
BY ASSIGNEE SKIP-LINE
BY WO
BY WDC
IF RECORDLIMIT EQ 15
HEADING
" Text next to the heading image "
" "
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
GRID=OFF, SIZE=9, $
TYPE=HEADING, SIZE=20, STYLE=BOLD, COLOR=RED, $

ENDSTYLE
END



I am having a problem with putting more than 1 line of text in the heading next to the image.
I have searched through focal point to find an example but it seems that PDF reports are
quite popular.

Does anyone have any experience doing this?

Thanks!

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


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Expert
posted Hide Post
Can you edit your post and place the code in the code tags not quote tags


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
 

TABLE FILE MMDB1
SUM COMPUTE COLOGO/A92 = '<img src="http://wsscapps:81/ibi_html/ib_logo.gif" border="0" />'; NOPRINT

SUM COMMENT1
COMMENT2
COMMENT3
BY ASSIGNEE SKIP-LINE
BY WO
BY WDC
IF RECORDLIMIT EQ 15
HEADING
" Text next to the heading image "
" "
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
GRID=OFF, SIZE=9, $
TYPE=HEADING, SIZE=20, STYLE=BOLD, COLOR=RED, $

ENDSTYLE
END



Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Expert
posted Hide Post
As this is HTML, there are a number of things that can be done.

Try the stylesheet command for images.
TYPE=HEADING, IMAGE=http://localhost:8080/ibi_html/ib_logo.gif, $


Try embedding some HTML in the first heading line.
DEFINE FILE CAR
FIRSTLINE/A1000 = '<TABLE><TR><TD><img src="http://localhost:8080/ibi_html/ib_logo.gif" border="0" /></TD>'
| '<TD>Text next to the heading image<br>Next Line</TD></TR></TABLE>' ;
END
TABLE FILE CAR
SUM SALES
DEALER_COST
RETAIL_COST
BY COUNTRY SKIP-LINE
BY CAR
BY MODEL
IF RECORDLIMIT EQ 15
HEADING
"<FIRSTLINE"
"Second Line"
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
GRID=OFF, SIZE=9, $
TYPE=HEADING, SIZE=10, STYLE=BOLD, COLOR=RED, $
-*TYPE=HEADING, IMAGE=http://localhost:8080/ibi_html/ib_logo.gif, $
ENDSTYLE
END


There are probably many other ways to achieve this.


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
Expert
posted Hide Post
As Waz states, "There are probably many other ways to achieve this." and I would be inclined to use the style inclusion of an image as is should not impact lines of heading. So, my preferred method would be this, as the code is easier to read.
TABLE FILE CAR
  SUM SALES
      DEALER_COST
      RETAIL_COST
   BY COUNTRY SKIP-LINE
   BY CAR
   BY MODEL
IF RECORDLIMIT EQ 15
HEADING
" <+0 First Line of Heading"
" <+0 Second Line of Heading"
" <+0 Third Line of Heading"
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
  GRID=OFF, SIZE=9, $
  TYPE=HEADING, HEADALIGN=BODY, $
  TYPE=HEADING, ITEM=2, COLOR=RED, SIZE=12, $
  TYPE=HEADING, IMAGE=/ibi_html/ib_logo.gif, $
ENDSTYLE
END
-RUN

However, be aware that if your image size is larger than the space taken by the number of rows in your heading, you could get overlap between report content and heading.

Also be aware that syntax such as JUSTIFY, COLPSAN and others are not supported for the image.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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     [CLOSED] HTML Report: How to put multiple text lines in heading...

Copyright © 1996-2020 Information Builders