Focal Point
[CLOSED] Not able to save Graph as PDF

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

August 13, 2009, 07:19 AM
Devi
[CLOSED] Not able to save Graph as PDF
Hi All,

We are working on saving a graph as pdf but not able to do so. We do not have SVG on our server and hence will have to work with GIF.

Following is the fex code

FILEDEF a DISK D:\ibi\apps\baseapp\other\a.gif

-* Simply Graph Report
GRAPH FILE CAR
SUM SALES SALES
BY COUNTRY
ON GRAPH PCHOLD AS a FORMAT GIF
END
-RUN

TABLE FILE CAR
SUM SALES NOPRINT BY COUNTRY
ON TABLE SET STYLE *
TYPE=REPORT, IMAGE=app\a.gif,$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF

END

The output of this code is the graph in HTML format and not PDF.

Thanks!!

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


WebFOCUS 7.6
All Outputs
August 13, 2009, 07:28 AM
<JG>
quote:
PCHOLD


1ST use HOLD not PCHOLD

2nd you do not need any PDF/SVG components on the server the required file format
is generated by WebFOCUS
August 13, 2009, 09:41 AM
Devi
Yes, I changed PCHOLD to HOLD received the following message

0 NUMBER OF RECORDS IN GRAPH= 18 PLOT POINTS= 5
GIF FILE SAVED ...
0 ERROR AT OR NEAR LINE 18 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC3251) IMAGE FILE UNREADABLE OR INVALID: app\a.gif


Please advice


WebFOCUS 7.6
All Outputs
August 13, 2009, 10:27 AM
GinnyJakes
Try taking out your filedef and just refer to the image in your stylesheet. You save the image in the 'other' directory and don't reference that in your stylesheet.

Does this work?
GRAPH FILE CAR
SUM SALES SALES
BY COUNTRY
ON GRAPH HOLD AS A FORMAT JPEG
END
-RUN

TABLE FILE CAR
SUM SALES NOPRINT BY COUNTRY
ON TABLE SET STYLE *
TYPE=REPORT, IMAGE=A,
     POSITION=(3 0),
     SIZE=(4 2.5),
$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END



Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
August 13, 2009, 05:26 PM
Waz
Tell me if I am wrong, but if you are creating a GIF, then you should be able to create SVG. Then as per normal, add it to a PDF report.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!