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     Graph not showing up in EXL2K output

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Graph not showing up in EXL2K output
 Login/Join
 
Gold member
posted
All,

Having a problem with the below code. It’s producing the expected output in PDF but not in excel. In excel the graph is not show up. Why?

-* File SartSummaryProp.fex
SQL SQLMSS EX IRF_DETAIL1.DBO.BrokerSummary_Prop 'aon';
TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS SMART_SUMMARY_PROP_HOLD FORMAT ALPHA
END


-*FILEDEF PP DISK C:\temp\PP.gif
-*FILEDEF PP DISK C:\IBI\WEBFOCUS\IBI_HTML\PP.GIF
SET GRAPHSERVURL=http://STSRV1/ibi_apps/IBIGraphServlet
GRAPH FILE SMART_SUMMARY_PROP_HOLD
-* CurrM2Count CurrM1Premium CurrM1Count CurrentPremium CurrentCount
SUM SMART_SU.CurrentPremium AS '2006' SMART_SU.CurrM1Premium AS '2005'
SMART_SU.CurrM2Premium AS '2004'
ACROSS SMART_SU.BrokerCity
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH HOLD AS PP FORMAT GIF
setGraphType(55);

END

-*DEFINE FILE SMART_SUMMARY_PROP_HOLD
-*IMG/A60 = '';
-*ENDIMG/A6 = '';
-*END


SET COMPOUND=CLOSE
TABLE FILE SMART_SUMMARY_PROP_HOLD
SUM CurrentPremium AS '2006' CurrM1Premium AS '2005' CurrM2Premium AS '2004'
BY BrokerCity
ON TABLE SET STYLE *
TYPE=DATA, BACKCOLOR=( BY=B2 'SILVER' 'WHITE' ), $
TYPE=REPORT, IMAGE=PP.GIF, POSITION=(4 6), SIZE=(3 3.5), $
ENDSTYLE

ON TABLE PCHOLD FORMAT EXL2K
END
 
Posts: 72 | Registered: April 03, 2006Report This Post
Expert
posted Hide Post
Hi rc,

Has this issue been resolved on your site?

I took a quick review of your code, and just wondering, what if you remove the "-*" from this line:

-*IMG/A60 = 'C:\myimage.gif';


will that give your any different output? This may be a bit trivial, but should be worth of a try.

Cheers, Smiler

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Expert
posted Hide Post
quote:
TYPE=REPORT, IMAGE=PP.GIF, POSITION=(4 6), SIZE=(3 3.5), $

it is the syntax, i belive, rr.
this syntax :'type=report,image= 'is for pdf;
excel puts images in cells as explicit references, just as though there were data items; so you code for them as tho they were data items.
you were on the right track with your define, if your image was a long char string with an image tag sourcing your pp.gif in the agent.
then your report has to sum or print that field called img. the image will be pinned to its cell , that's how we have it working in our shop; it can get more complicated than that, but just change your thinking from pdf thinking to excel thinking.
and when you post code, remember to either surround it in code tags or turn your code tags on; and do edit your profile so we can see what version/platform you on, would 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
Expert
posted Hide Post
The main thing to remember with images is that for HTML and EXCEL the image must be available via a URL as it is included as an external reference, but for a PDF the image must be available within the APP path as it is included in the PDF data stream.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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     Graph not showing up in EXL2K output

Copyright © 1996-2020 Information Builders