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