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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
IMAGE SIZE
 Login/Join
 
Gold member
posted
Hi,

I am using a gif image in my report and trying to display the image in the header of the report using
TYPE=HEADING,
     IMAGE=/approot/folder/abc.gif,
     POSITION=(0.100000 .1000000), SIZE=(0.5 0.5),
$

The image is appropriately being display in all the reports except for one where the SIZE attribute dosent work and i get a very big image in the header.

This report is slightly different than other reports in the sense that it uses OVER command to display the fields vertically and the following style is used to align each of the column and data.

<style type="text/css">

 .T_Col1 { width:50%;font-family:Tahoma; font-size:8pt;color:#000000;
              background-color:#ffffff; text-align:right;padding-right: 20px;}
 .D_Col1 {width:50%; font-family:Courier; font-size:10pt; color:#000000;
             background-color:#ffffff; text-align:left; border-style: NONE;}
</style>



Is this because of the HTML style or is there anything that i have missed out in this partiular report.


Regards,
Aditya

This message has been edited. Last edited by: Aditya,
 
Posts: 84 | Registered: June 05, 2006Report This Post
Member
posted Hide Post
Be pragmatic.

Dont use the SIZE parameter in your stylesheet. Make a new gif that is the right size. I use IfranView to do this. Get it free at:
http://www.tucows.com/preview/194967

A smaller gif works quicker too.

Paul


Paul Burridge
Senior Consultant
34 years with Information Builders
WebFOCUS 8.2.5 Win10
 
Posts: 17 | Location: The Netherlands | Registered: February 21, 2005Report This Post
Gold member
posted Hide Post
But the problem is the POSITION attribute is also not working which i badly want to position the image

Rgds,
Aditya
 
Posts: 84 | Registered: June 05, 2006Report This Post
Expert
posted Hide Post
is your output PDF or HTML? i'm confused.
your setup indicates PDF but then your post later says HTML?
For PDF, Mickey Grackin in the expert, so make sure your post title says PDF in it, and mickey will answer when he gets his ears on today.
For HTML, its easy,
It its HTML you're after, reply, and i'll post an example for you.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
Judging from the CSS code in the original post, I believe this is an HMTL output report.

Instead of applying CSS to the cells with the images, try applying CSS attributes to the IMAGE tag directly. You can add margins to IMAGE tags which may get you what you want. You could also try applying relative positioning to the IMAGEs via the CSS as well.

Without some sample code, it is hard to find a solution.

Can you duplicate the issue with the CAR file and an image?


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
OK, I think I have something for you.

When including an image into an HTML output format using the WebFOCUS stylesheet syntax, it seems to insist on putting a 'position:absolute' property into the CSS style on the IMAGE tag itself which overrides anything you do in a CSS stylesheet CLASS setting.

Since your output is HTML, you can get around this easily by creating a DEFINE FILED with the HTML code for the IMAGE tag, style syntax and all, and then include the DEFINE FIELD into your code where you would like the image to appear.

Try this:

DEFINE FILE CAR
IMGTAG/A200='<IMG SRC="https://forums.informationbuilders.com/images/homebanner.jpg" style="position:relative;margin:7pt;width:36pt;height:36pt">';
END
TABLE FILE CAR
HEADING
"<IMGTAG"
PRINT CAR MODEL BODYTYPE
BY COUNTRY ROWS 'ENGLAND' OVER 'W GERMANY' OVER 'JAPAN' OVER 'ITALY' OVER 'FRANCE'
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,GRID=OFF,BORDER=LIGHT,$
ENDSTYLE
END

Adjust the margin, height and width settings as desired.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
<img src=... 
style="border: 1px solid #CCCCCC; " height="25" >

is all you need if your image is going into your header, just one of the height,width combo is enough, you don't have to know the size of your incoming image, just the size you want to constrain it to, number of pixels is the default measurement scale.
and a border is your decision, none is the default;
Aditya, while you're at it, can you please edit your profile signature to include your system details?




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
Hi All,

Thanx for you replies.I am working with HTML reports.Sorry for no posting it earlier.

mgrackin : The code that you posted is working fine.

But how do i customize. I am doing something like this.


EX db_stored_proc param;

TABLE SQLOUT
PRINT 
FIELD 1 OVER
FIELD 2 OVER
FIELD 3 OVER

HEADING 
"XXXXX"

FOOTING
"----"

ON TABLE HOLD AS AAA FORMAT HTMTABLE
-INCLUDE wfstyle
END

-HTMLFORM BEGIN
<html>
<style type="text/css">

 .Title_Col1 {color:#000000;}
 .Data_Col1 {border-style: NONE;}

</style>

<body>
<br>
 <div align="center">
  !IBI.FIL.AAA;
 </div>
</body>
</HTML>
-HTMLFORM END


The wfstyle uses the .Title_Col1 and .Data_Col1 to align the fields.

Rgds,
Aditya
 
Posts: 84 | Registered: June 05, 2006Report This Post
Virtuoso
posted Hide Post
Aditya
With the way you are already working, one solution is to add a line to your style declaration and use your original code:

img {height:80px;width:80px;}


Adjust the px size to suit. You can also add other parameters if you find the image moving.

img {height:80px;width:80px;position:relative;top:5px:left:10px;}


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Virtuoso
posted Hide Post
Aditya,

Did Alan's suggestions answer your question?


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders