Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Return Only PNG from Graph request

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] Return Only PNG from Graph request
 Login/Join
 
Guru
posted
We have a requirement to create a number of Graphs as PNG files and return them directly to user's browser as PNGs.

When you SAVE or HOLD the graph you get just the PNG file but when PCHOLDing the graph you get the PNG along with a HTML page that included the Image Map.

We could potentially consume the HTML page and extract the PNG file but what we really want to do is to just return the PNG file directly without the overhead of the MAP.

Anyone ever done this? I'm hoping it is just a SET command but haven't found the right one yet.

Cheers

Stu

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


WebFOCUS 8.2.03 (8.2.06 in testing)
 
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007Report This Post
Expert
posted Hide Post
Have you tried setting HTMLFORMTYPE to PNG and use -HTMLFORM {ddname} pointing to the PNG file.

May not work, but .....


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
How about using EDAGET?

GRAPH FILE GGSALES
SUM DOLLARS
BY REGION
ON GRAPH HOLD AS GRAPH1 FORMAT PNG
END
-RUN

EX EDAGET PNG,GRAPH1.PNG,B


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
Good One

Another forgotten gem


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
Thanks Tony and Waz,

I had tried -HTMLFORM and that was going to the last resort as it still wraps extra HTML code around the image itself.

Fortunately EX EDAGET send the raw PNG without any extra baggage to be stripped of.

One note for the curious, if you are running this through WF8 content area then change EX to EXEC or add -MRNOEDIT before EX EDAGET.

Thanks

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
 
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007Report This Post
Expert
posted Hide Post
Yes, anything in the content area is scanned for -INCLUDE or EX, because it wants to find all fexes to ship to the WebFOCUS server for execution.


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Return Only PNG from Graph request

Copyright © 1996-2020 Information Builders