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