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     [CASE-OPENED] Graph with transparent background

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE-OPENED] Graph with transparent background
 Login/Join
 
Silver Member
posted
Hello-

I need to create a graph with a transparent background. The graph will be inserted into a compound document to be output to PowerPoint and the background from the PowerPoint template needs to show through. The following post indicates this is possible by inserting two lines of code.

https://techsupport.informatio...om/sps/60762508.html

The code referenced in the case linked above is:

setFillColor(getFrame(),new Color(255,255,255,0));
setFillColor(getChartBackground(),new Color(255,255,255,0));

When I make that change and include in PowerPoint, the background is black and not transparent. Following is sample code from CAR.

Thanks in advance for any guidance.

-Barb

 
GRAPH FILE CAR
-* Created by Info Assist for Graph
SUM CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
INCLUDE=endeflt.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setFillColor(getFrame(),new Color(255,255,255,0));
setFillColor(getChartBackground(),new Color(255,255,255,0));

*END
ENDSTYLE
END
-RUN

-*IA_GRAPH_FINISH


 

This message has been edited. Last edited by: <Kathryn Henning>,


WebFocus 8.1.05, 8.2.01
 
Posts: 32 | Registered: November 21, 2013Report This Post
Expert
posted Hide Post
AFAIK, only .gif have transparency possibilities. its puzzling to me why the techsupport article cites what appears to be a CMYK spec, new Color(255,255,255,0));
which would be black, wouldn't it?




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
PNG files can have transparency. Just taking the result to a HOLD file and opening in an image editor the transparency is there.

Could it be a PPT limitation?


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




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
Silver Member
posted Hide Post
Thanks for the responses. Based on Alan's comment, I output the file to PNG and then manually brought it into a PowerPoint and the background is transparent. The process of including in a compound which is then output to PowerPoint is losing the transparency. Any thoughts for a workaround there?


WebFocus 8.1.05, 8.2.01
 
Posts: 32 | Registered: November 21, 2013Report This Post
Virtuoso
posted Hide Post
Pure guesswork, but could the technique here work, adding the graph as a watermark image.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Expert
posted Hide Post
how about just making the background color of your graf match the color of the .ppt? totally cheating, but might work for your customer.




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
Silver Member
posted Hide Post
From what I read, watermark is limited to one per and I will be adding many graphs to my compound.

I went back to the idea that the graph image that is saved is transparent when brought into a paint program (or PowerPoint for that matter). Instead of inserting the graph fex into the compound, I inserted it as an image using the gif file saved from the graph procedure and then used PowerPoint as the output type for the compound.

The graph still comes over with a solid white background but within PowerPoint I can choose Format Picture > Fill > No Fill and the white background goes away.


WebFocus 8.1.05, 8.2.01
 
Posts: 32 | Registered: November 21, 2013Report This Post
Silver Member
posted Hide Post
quote:
Originally posted by susannah:
how about just making the background color of your graf match the color of the .ppt? totally cheating, but might work for your customer.


Unfortunately, the background in the PowerPoint is a gradient so it may be difficult to match.


WebFocus 8.1.05, 8.2.01
 
Posts: 32 | Registered: November 21, 2013Report This Post
Expert
posted Hide Post
oh rats.




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
<Kathryn Henning>
posted
Hi Barb,

Thank you for opening a case for this issue. Please keep us updated on the outcome.

Regards,

Kathryn
 
Report This Post
<Kathryn Henning>
posted
Hi All,

I wanted to post an update that this is a known issue and is currently in programming.

Thanks and regards,

Kathryn
 
Report 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     [CASE-OPENED] Graph with transparent background

Copyright © 1996-2020 Information Builders