April 14, 2008, 05:09 AM
hammo1jIncluding Webfocus generated Graphs as images in HTML pages.
Hi
This was part inspired by
Display a GRAPH as report page header
https://forums.informationbuilders.com/eve/forums/a/tpc/...1057331/m/3951098972I have an HTML page in which I have embedded images which are wf graphs generated in the same report.
Using TonyA's principle that HTML links are resolved relative to the users machine, I have to place the graphs in a location where they can be linked via a URL.
This means temp directory will not work and also my server since this is a separate machine to the wf client which is the only machine reachable by URL.
The only way I can think of doing this is
-* use MRE_User to uniquify this
ON GRAPH PCHOLD AS GRAPHSPA_&MRE_User FORMAT PNG
...
COPY the file from the server to the client
DOS COPY GRAPHSPA_&MRE_User.PNG \\CHAOS\WF76\IBI\APPS\USERTEMP
Now access within the webpage
-HTMLFORM BEGIN
<html>
<body>
<img>http://chaos/approot/usertemp/GRAPHSPA_&MRE_User.PNG</img>
etc (not all code shown)
I am fairly certain this will work. I just wondered if there is a neater way or how other people solve this same problem.
Regards
John
April 14, 2008, 05:14 AM
Alan BJohn
I use:
.
ON GRAPH HOLD AS name FORMAT HTMTABLE
.
.
-HTMLFORM BEGIN
.
.
!IBI.FIL.name;
.
.
April 14, 2008, 09:24 AM
mgrackinHAMMO1J,
As you noted, Due to the fact that your WF Client and WF Server components are on separate machines, you have to put the graph image files in a directory which the CLIENT machine can access them.
An alternative solution to do this would be to map a drive on the WF Server machine that points to the directory on the CLIENT machine. Then map an APP PATH to the directory and point the holding of files to this directory with APP HOLD.
Just a thoguht.
April 14, 2008, 10:41 AM
hammo1jThank you very much for some good suggestions.
Alan B
Your method works fine but when I position my cursor over the graph it comes up with "click to activate and use this control. Subsequently it allows you to move the compenents of the graph all over the output.
Does anyone know how to turn this feature off!
April 14, 2008, 11:31 AM
Darin LeeTry SET GRAPHEDIT=OFF which removes the capabilities to edit the graph after generation.