Focal Point
Errors when in Active PDF (FLEX)

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/401109563

February 09, 2010, 10:39 AM
Deborah Sullivan
Errors when in Active PDF (FLEX)
I'm just mucking around at the moment, trying to get a feel for some of the newer functionality introduced with WF 7.6.9 and above. I wanted to create some sample FLEX reports with the composer/compound tool, something that we can demo to internal customers to show them some of the functionality of WF.

Whenever I create a report, insert a graph and save it as "Active PDF", I receive an error when I try to run it:

Flex ERROR: exception during transcoding: Failed to grab pixels for image /hostname/ibi/7.6.10/ibi/srv76/wfs/edatemp/ts000026/hold.gif
/hostname/ibi/7.6.10/ibi/srv76/wfs/edatemp/ts000026/ibidata.as: line 83 column 2
Flex ERROR: Unable to transcode /hostname/ibi/7.6.10/ibi/srv76/wfs/edatemp/ts000026/hold.gif.
/hostname/ibi/7.6.10/ibi/srv76/wfs/edatemp/ts000026/ibidata.as: line 83 column 2
/hostname/ibi/7.6.10/ibi/srv76/wfs/edatemp/ts000026/ibidata.as: line 83 column 2
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: "
BYPASSING TO END OF COMMAND

I have tried to format the little chart in SVG, PNG and GIF and experience the same error with all. Someone told me that I need to add the following line to our edasprof:

SET GRAPHSERVURL=http://hostnameRazzerort/ibi_apps/IBIGraphServlet

(hostname and port to be specific to our reporting server, of course)

But I thought that I would try and add it to the fex first before opening a ticket to mess with our edasprof. I am still getting the errors with the SET line added.

Has anyone seen this or know of a workaround? I just don't want to unnecessarily start monkeying with our edasprof file needlessly.

This example uses 7.6.10 on Linux.

Thanks for any help,

Deborah Sullivan / Fidelity
February 11, 2010, 08:21 AM
Clinton Side-Kick
Hi Deborah,
Are you attempting to display the std graph result in the heading of the report?
Me thinks that might not work as expected.
If you would like to display a graph and grid combined in the APDF result, you might want to try something like this:
 
SET PAGE-NUM=OFF
COMPOUND LAYOUT PCHOLD FORMAT APDF
SECTION=S1, LAYOUT=ON, MERGE=ON, ORIENTATION=LANDSCAPE, $
PAGELAYOUT=1, $
COMPONENT=Graph, TYPE=REPORT, POSITION=(1 1), DIMENSION=(8 4), $
COMPONENT=Sales, TYPE=REPORT, POSITION=(1 5.25), DIMENSION=(4 4), $
COMPONENT=Units, TYPE=REPORT, POSITION=(6.25 5.25), DIMENSION=(4 4), $
END
SET COMPONENT=Graph
TABLE FILE CAR
SUM RETAIL_COST
    DEALER_COST
	SALES
BY COUNTRY
ON TABLE HOLD FORMAT APDF
ON TABLE SET STYLE *
TYPE=REPORT,REPORT-VIEW=CHART,CHART-TYPE=LINE,$
TYPE=REPORT,OBJECT=LEGEND,LEGEND-VIEW=DOCKING,POSITION-POINT=BOTTOM-CENTER,$
TYPE=REPORT,OBJECT=LEGEND,LEGEND-VIEW=FLAT,$
ENDSTYLE
END
ON TABLE PCHOLD FORMAT APDF
SET COMPONENT=Sales
TABLE FILE GGSALES
"Sales report for <REGION"
" "
SUM DOLLARS/F8M
BY REGION NOPRINT
BY ST
BY CITY
ON TABLE HOLD FORMAT APDF
ON TABLE SET STYLE *
TYPE=REPORT, FONT=HELVETICA, COLOR=RED, SQUEEZE=ON, $
END
SET COMPONENT=Units
TABLE FILE GGSALES
"Number of unit sales per product for <REGION"
" "
SUM CNT.UNITS AS 'Number of units sold'
BY REGION NOPRINT
BY PRODUCT
ON TABLE HOLD FORMAT APDF
ON TABLE SET STYLE *
TYPE=REPORT, FONT=HELVETICA, COLOR=BLUE, SQUEEZE=ON, $
END
COMPOUND END
 


If this is not what you are looking for, please give a bit more detail.


--------------------------------------------------------------------------------
prod: WF/AS 8.2.05; OmniGen;
In FOCUS since 1991
February 11, 2010, 02:09 PM
Deborah Sullivan
Thanks for your reply.

I really don't have a specific report requirement at the moment, I was just testing out the composer and the active content option, just to see how it works. I hope to eventually create a couple of sample reports that we can demo to business groups here who are considering using WF. I also would just like to understand how to use this function so that I can better support in-house users of these tools.

This is my actual code, but it is code that was generated using the composer layout tool. All I did was insert a simple graph and request Active PDF format. The only thing that I added was the SET GRAPHSERVURL line:

SET GRAPHSERVURL=http://hostname : port#/ibi_apps/IBIGraphServlet
SET HTMLARCHIVE=ON
COMPOUND LAYOUT PCHOLD FORMAT APDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='0.5^0.5^0.5^0.5', MERGE=OFF, ORIENTATION=PORTRAIT, PAGESIZE=Letter, $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='graph1', TEXT='graph1', TOC-LEVEL=2, POSITION=(1.875 1.250), DIMENSION=(4.583 3.125), METADATA='Z-INDEX: 100; LEFT: 1.875in; WIDTH: 4.583in; POSITION: absolute; TOP: 1.25in; HEIGHT: 3.125in', $
END
SET COMPONENT='graph1'
-*component_type graph
GRAPH FILE CAR
SUM CAR.BODY.SALES
ACROSS CAR.CARREC.MODEL
ON GRAPH SET LOOKGRAPH PIEMULTI
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 SET VAXIS 225
ON GRAPH SET HAXIS 329
ON GRAPH HOLD AS HOLD FORMAT GIF
ON GRAPH SET GRAPHSTYLE *
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
$
ENDSTYLE
END
TABLE FILE SYSCOLUM
" "
SUM TBNAME NOPRINT
ON TABLE SET PAGE-NUM NOLEAD
IF READLIMIT EQ 1
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
type=HEADING, IMAGE=HOLD.gif, position=(0 0), $
TYPE=REPORT,PAGE-LOCATION=OFF,$
END
COMPOUND END


Thanks,

Debbie / Fidelity

This message has been edited. Last edited by: Deborah Sullivan,