|
Question : Save FoxPro Form or Container as jpg or gif
|
|
Hi,
I have written a charting application using Visual FoxPro 6 as an offline application. It is very similar to MS Graph except that it's very customized to our client's needs. I have been asked to write this application online. I have written the online application in FoxPro using FoxISAPI as my web server. I can create a Form when the web application is instantiated and plot the graph on a container in that form. The form, of course, is not visible to the user and neither on the server. What is the best way to save that Form to a jpg or gif file so the user can download it? Can an ActiveX application work? Or should I use a drawing class by Windows?
Many thanks.
Cyril
|
|
Answer : Save FoxPro Form or Container as jpg or gif
|
|
Download Obj2Bmp by George Tasker from www.universalthread.com downloads section. It lets you save an entire form or any object on it as a bmp. Also you could use winAPI to create DIB and save.
If excel is used in your charting then you could use PublishObjects method to save the chart as a web page (either interactive or static - creates the gif for you).
|
|
|