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.
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.
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, 2005
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, 2003
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, 2003
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, 2003
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, 2003
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.