03-28-2016 01:59 PM
I am working on some html graphics outputs, the simple program I copy from SAS is like that:
proc sort data= sashelp.prdsale out=prdsummary;
by year quarter;
goptions reset=all device=javameta
ftext="Trebuchet" htext=1.5 hby=2;
ods listing close;
proc gchart data=prdsummary;
by year quarter;
hbar country / sumvar=actual subgroup=product sum;
ods html close;
I wa able to get the output, a htm file. But when I clicked on that htm file and tried to open it in my IE, the error message show up:
"Sorry, your browser does not support the applet tag. cannot be displayed. Sorry, there was a problem with the Graph control or plug-in in your browser. cannot be displayed."
What's the reason for this error? What should I do with my IE?
03-28-2016 03:59 PM
03-28-2016 04:09 PM
This is just an example. Actually in my own program, JAVAMETA is for the interactive features in my html output, for example, I want to use tips, and can enlarge the graph, etc. My program worked very well under SAS 9.3 and IE 8. Currently I have SAS 9.4 and Windows 10, and the progam is not working. I am not sure what's the issue.
03-28-2016 05:42 PM
My output is quite simple: I have a .txt which is output from SAS by using JAVAMETA. and then a html file like this:
<param name="BackgroundColor" value="#EEEEEE">
<param name="ZoomControlEnabled" value="false">
<param name="SlideShowControlEnabled" value="false">
<param name="Metacodes" value="j001-001.txt">
<param name="MetacodesLabel" value="001-001">
04-05-2016 10:55 AM
Viewing SAS device=javameta output can be problematic. You have to point the codebase just right in a location everyone can get to, and everyone's browser has to have the correct version of java, etc, etc. Therefore I would recommend not using it.
If you just need a graph, I would suggest using device=png. If you need a graph with html hover-text/drilldown/etc, but need it to be in a single file (such that it is easy to move around, or email, etc) I would suggest using the new "ods html5" with bitmap_mode='inline'. Here are a couple of blogs I wrote with example code: