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] PRESERVERATIO HTML Picture

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] PRESERVERATIO HTML Picture
 Login/Join
 
Member
posted
Hi all,

is there a possibility to use a function like "PRESERVERATIO" to get an image sized in the HTML Report?

The problem is that i need to keep the ratio. But I do not have the possibility to get the dimensions of the picture before I will load it into the report.

Thanks and regards,
Markus

This message has been edited. Last edited by: Kerry,
 
Posts: 8 | Registered: May 25, 2010Report This Post
Expert
posted Hide Post
Markus, please provide a few more details. Is the picture an existing image or is it a graph generated by an earlier step? How are you embedding the image in the HTML report? In normal HTML code you do not have to provide both dimensions of the image, you can provide only one - the other is automatically calculated.

<img src="http://farm2.static.flickr.com/1320/5181148312_5f53bf7c02_m.jpg" width="200">
<img src="http://farm2.static.flickr.com/1320/5181148312_5f53bf7c02_m.jpg" width="100">





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
Member
posted Hide Post
Hi Francis,

I will extract an image from the sharepoint.
That means I will establish an connection to a specified sharepoint subiste and I will extract a picture from there.

But I can not be sure if it is an big picture or a smaller one.

So what I want to have is the possibility to strech or minimize a picture to a size of 8x5 inches

What I tried is after inserting the picture is:
POSITION=(3.2 0.4), SIZE=(* 5.5),

But this does not help.
If I insert
POSITION=(3.2 0.4), SIZE=(8 5.5),

The pic will be streched on this size.

Thanks and regards,
Markus


WebFOCUS 7.6.10
Win XP
all output
 
Posts: 8 | Registered: May 25, 2010Report This Post
Member
posted Hide Post
this is the current fex which includes a picture


TABLE FILE CAR
PRINT
'CAR.ORIGIN.COUNTRY' NOPRINT
'CAR.COMP.CAR' NOPRINT
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
IMAGE='https://&SHARPOINTSYS.EVAL/content/&PROJECTFOLDER.EVALProject organizational chart/&SPIMAGE.EVAL',
POSITION=(3.2 0.4), SIZE=(* 5.5),
-*PRESERVERATIO=ON,
$
ENDSTYLE
END


WebFOCUS 7.6.10
Win XP
all output
 
Posts: 8 | Registered: May 25, 2010Report This Post
Expert
posted Hide Post
I cannot imagine why PRESERVERATIO=ON is not valid for HTML reports.

This example uses CSS to place an image in a report:

TABLE FILE CAR
SUM SALES 
BY COUNTRY
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD AS H001 FORMAT HTMTABLE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
ENDSTYLE
END
-RUN

-HTMLFORM BEGIN
!IBI.FIL.H001;
<IMG SRC="http://farm2.static.flickr.com/1320/5181148312_5f53bf7c02_m.jpg" 
     style="width: 100px; position:absolute; left: 50px; top: 50px;" />
-HTMLFORM END


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
Here's an example provided by Tech Support:

TABLE FILE CAR
PRINT
COUNTRY NOPRINT
ON TABLE SET PAGE-NUM OFF
ON TABLE HOLD FORMAT HTMTABLE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
IMAGE='http://farm2.static.flickr.com/1320/5181148312_5f53bf7c02_m.jpg',
POSITION=(0.5 0.5), $
ENDSTYLE
END
-RUN

-HTMLFORM BEGIN
<html>
<head>
<script>
function resizeTo()
{
var imgs,i;
// loop through all images of the document  
imgs=document.getElementsByTagName('img');
for(i=0;i<imgs.length;i++)
  {
  // change the ratio
  imgs[i].style.width = "35%";
  imgs[i].style.height = "35%";
  }
}
</script>
</head>
<body  onload="resizeTo()">
!IBI.FIL.HOLD;
</body>
</html>
-HTMLFORM END


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
I was just granted a New Feature Request to make PRESERVERATIO available for HTML reports. It currently only works for PDF (I don't know about Excel...).


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
  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] PRESERVERATIO HTML Picture

Copyright © 1996-2020 Information Builders