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     [SOLVED] how to display graph and report side by side in excel format

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] how to display graph and report side by side in excel format
 Login/Join
 
Member
posted
Hi All,
can any one help me how to display pie chart along with report side by side in excel format.I am using the 7.6.2version.

This message has been edited. Last edited by: Kerry,


WebFocus 7.1.6
 
Posts: 6 | Location: chennai | Registered: June 03, 2008Report This Post
<JG>
posted
Your best option is to use FORMAT EXL2K TEMPLATE
and use an Excel template to generate the graph
 
Report This Post
Platinum Member
posted Hide Post
I am not able to find/recollect where I read about this technique, but here is what I vaugely remember.

- Step#1 - Save graph file output as GIF

- Step#2 - In a later TABLE FILE statement that creates the final Excel report, have a style-sheet line that embends an image. The syntax on this line includes the position parameters and you can position it wherever.

FOCUS-Nation, please correct me if I am wrong.

Sandeep Mamidenna


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
 
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006Report This Post
Member
posted Hide Post
quote:
Originally posted by BlueZone:
I am not able to find/recollect where I read about this technique, but here is what I vaugely remember.

- Step#1 - Save graph file output as GIF

- Step#2 - In a later TABLE FILE statement that creates the final Excel report, have a style-sheet line that embends an image. The syntax on this line includes the position parameters and you can position it wherever.

FOCUS-Nation, please correct me if I am wrong.

Sandeep Mamidenna


Hello Sandeep,

Can you please provide a working example for this please. i specially want a reference (sample syntax/script) for the step 2 that you mentioned.

Regards,
Jagriti


WebFocus 7.7, Developer Studio 7707, Windows 8,Report Caster
Output Format - Excel, PDF, HTML
 
Posts: 18 | Registered: December 28, 2016Report This Post
Virtuoso
posted Hide Post
The closest I can get for this requirement is a single Excel file with a Report Tab and a Chart Tab. The way I did it is by using a Document. Here's the code:
ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET EMPTYREPORT=ON


COMPOUND LAYOUT PCHOLD FORMAT XLSX
SECTION=Section_1, LAYOUT=ON, PAGESIZE=LETTER, ORIENTATION=LANDSCAPE, SHOW_GLOBALFILTER=OFF, $
PAGELAYOUT=1, NAME='Page 1', TEXT='Page 1', LEFTMARGIN=0.25, RIGHTMARGIN=0.25, TOPMARGIN=0.25, BOTTOMMARGIN=0.25, $
COMPONENT=TableChart_1, COMPONENT-TYPE=REPORT, POSITION=(1.041666 1.041666), DIMENSION=(* *), ARREPORTSIZE=DIMENSION, METADATA='VERSION:1.0;WIDTH:4.0;HEIGHT:3.0;LEFT:1.041666;TOP:1.041666', $
COMPONENT=TableChart_2, COMPONENT-TYPE=GRAPH, POSITION=(4.635416 0.96875), DIMENSION=(5.0 3.5), ARREPORTSIZE=DIMENSION, METADATA='VERSION:1.0', $
END

SET COMPONENT=TableChart_1
-*component_type report
-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
TABLE FILE ibisamp/car
SUM CAR.BODY.DEALER_COST
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR

ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET HTMLCSS ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET CACHELINES 100
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT='Report1', SUMMARY=&WF_SUMMARY.QUOTEDSTRING, ORIENTATION=LANDSCAPE, $
ENDSTYLE
END

SET COMPONENT=TableChart_2
-*component_type graph
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE ibisamp/car
-* Created by Info Assist for Graph
SUM CAR.BODY.RETAIL_COST
BY CAR.BODY.BODYTYPE
ON GRAPH PCHOLD FORMAT PDF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET ARGRAPHENGIN JSCHART
ON GRAPH SET EMBEDHEADING ON
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 5.0
ON GRAPH SET VAXIS 3.5
ON GRAPH SET UNITS INCHES
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 0
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET STYLE *
*GRAPH_SCRIPT

setPieDepth(0);
setPieTilt(0);
setDepthRadius(0); 
setCurveFitEquationDisplay(false); 
setPlace(true); 
setPieFeelerTextDisplay(1); 

*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT='Chart1', ORIENTATION=LANDSCAPE, $
*GRAPH_SCRIPT

setReportParsingErrors(false);
setSelectionEnableMove(false);
*GRAPH_JS_FINAL
"pieProperties": {
    "holeSize": "0%"
},
"agnosticSettings": {
    "chartTypeFullName": "Pie_Multi"
}

*END
ENDSTYLE
END

COMPOUND END




WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Expert
posted Hide Post
If you search the documentation for "IMAGE EXCEL" then you will find some examples for including images (per Sandeep).

The documentation can be located here

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
Member
posted Hide Post
Thank You For your response on this.

BabakNYC - Thank you for a working example.I have already managed to get this done (graph on one tab and report on the other) through compound layout as you mentioned. Now the requirement is to get a report and image (graph) on the same tab using the same compound layout concept. The report can be beneath the graph/image (not necessary side by side).

Tony - The entire document suggests to include an image in the excel format EXL07. However in my case the format of the report supported is EXL2K. Certain instances reflects that the same is not supported with the output/webfocus format I use (EXL2K). However this is a very useful link, it is of a great help.

I have somehow managed to get my intended output using the code provided below. This approach however is not a good programmer practice, but for now this serves my purpose. The idea is to generate as many blank lines as the height of the image could fit in, in the heading (in our case it is 24 no. of blank lines).
Any suggestion or enhancement for this is appreciated.

 
COMPOUND LAYOUT PCHOLD FORMAT EXL2K
SECTION=section1,LAYOUT=ON,ORIENTATION=PORTRAIT,PAGESIZE=Letter, $
PAGELAYOUT=1, $
COMPONENT = 'HOLD1',$
COMPONENT = 'HOLD2',$
END
 
SET COMPONENT='HOLD1'
 
GRAPH FILE CAR
SUM
SALES
BY COUNTRY
ON GRAPH HOLD AS GIF1 FORMAT GIF
ON GRAPH SET STYLE *
SQUEEZE=ON, ORIENTATION=PORTRAIT, $
TYPE=REPORT, GRID=OFF, FONT='TIMES NEW ROMAN', SIZE=10, $
ENDSTYLE
END
 
TABLE FILE CAR
HEADING
"</24 "
SUM
SALES 
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
-*XLSXPAGESETS=ON,TOPMARGIN=1,BOTTOMMARGIN=1,ORIENTATION=LANDSCAPE,PAGESIZE=LETTER,$
-*TYPE=REPORT,IMAGE=GIF1.GIF,POSITION=(.5 .5), SIZE=(.5 .5), $
-*TYPE=REPORT,STYLE=BOLD,$
-*TYPE=TABHEADING,IMAGE=GIF1.GIF,$
TYPE=REPORT,IMAGE=GIF1.GIF,$
-*TYPE=PAGEHEADER, OBJECT=IMAGE, JUSTIFY=LEFT, IMAGE=GIF1.GIF,$
ENDSTYLE
END
 
SET COMPONENT='HOLD2'
 
GRAPH FILE CAR
SUM
SALES
BY CAR
ON GRAPH HOLD AS GIF2 FORMAT GIF
ON GRAPH SET STYLE *
SQUEEZE=ON, ORIENTATION=PORTRAIT, $
TYPE=HEADING, GRID=OFF, FONT='TIMES NEW ROMAN', SIZE=10, $
ENDSTYLE
END
 
 
 
TABLE FILE CAR
SUM
SALES 
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TYPE=REPORT,IMAGE=GIF2.GIF,$
ENDSTYLE
END
 
 
COMPOUND END 


Regards,
Jagriti

This message has been edited. Last edited by: Jagriti Kumari,


WebFocus 7.7, Developer Studio 7707, Windows 8,Report Caster
Output Format - Excel, PDF, HTML
 
Posts: 18 | Registered: December 28, 2016Report 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     [SOLVED] how to display graph and report side by side in excel format

Copyright © 1996-2020 Information Builders