Re: ms OWC Chart Control Demo Code

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks Paul, but I have No Idea where you are seeing the HTML code!
The text below is Exactly what I see, and there isn't any html code there!


"Paul Randall" wrote:

Hi
mr_unreliable's script was both attached and appended to the bottom of his
post. Put the HTML into an HTA file and run it.

Split doesn't work well with CVS files because the fields may contain
commas.
Look at the .CHM help files for the version of OWC you installed. The
location depends on the OWC version.
Help file info: http://support.microsoft.com/kb/319793
There is a download for a single comprehensive help file for version 11, but
it may be included with the current version 11 installation.
Search the VBA or comprehensive help file for 'tab' and 'csv' to learn how
to use statements like these to load your data into a spreadsheet:
Spreadsheet1.CSVURL = "file:\test.csv"
Spreadsheet1.ActiveSheet.Range("B10").LoadText "tabfile.txt", Chr$(9)
Google to find examples of charting from the spreadsheet component.

Dynamic chart example: http://www.support.microsoft.com/kb/290348
This shows how to use events associated with the OWCs.

-Paul Randall

"tbader01" <tbader01@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A7CEB482-B79F-4263-B320-7C2BD2B4F9FD@xxxxxxxxxxxxxxxx
Thanks JW for your info on OWC. I never heard of that before, but it looks
pretty neat!
My problem is that I am more experienced with VBScripting, which I just
dragged and dropped files ontop of the VBS file to create graphs out of
the
CSV files using the Excel object, but of course would like to use arrays
to
chart the data (split(strCSVLine,",") ) which I can't figure out /w Excel.
The web sites you gave were pretty useful. It referenced a book called
"Understanding ActiveX and OLE", which I think I really need a better
understanding of. I got it on amazon.com for about $0.60!

PS: I don't see the hta demo that you referenced below!

"mr_unreliable" wrote:

o.k. here is a demo (hta) of the ms owc charting control,
which I assert to be easier and faster than using ms excel
for showing a chart from script.

There are various versions of owc available, depending on
your version of ms office, and/or what you may have
downloaded from microsoft. (The latest owc is version 11,
I think). The demo is using version 10, or "OWC10", from
owc10.dll. If you happen to have another version installed,
you will have to re-jigger the guid to match what you have.

The demo shows the owc chart as a "visual" control, i.e.,
sited on an hta (html) form (er, page?). In certain (many)
other cases of example code, you will see owc chart used as
a "logical", (or hidden) control. In those cases it is not
instantiated by an object tag, rather it is instantiated
via code:

CreateObject("OWC10.ChartSpace")

The programmer will than get the owc chart control to generate
the graphic (unseen), and using the "ExportPicture" method, to
write it out to a file (say a "gif" file). The gif file is then
displayed in an image tag (if html), or maybe in an image control
(if vb).

The demo hta uses the owc control go generate the graphic
"straight up", without going through the intermediate step
of generating a file.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)







.



Relevant Pages

  • RE: Insert special code
    ... you cannot work in WYSIWYG mode while typing HTML code in a Word ... it possible to make things like very special popup windows. ...
    (microsoft.public.word.docmanagement)
  • Re: FP2000 SSI, webbot, and changing code
    ... FP2003 may handle this better, but FP will still see this as invalid HTML code, since FP can not ... I use FP2000 for all development and work with ASP and use ASP's version of SSI, ... The problem is the cell tags ...
    (microsoft.public.frontpage.client)
  • Re: ms OWC Chart Control Demo Code
    ... Look at the .CHM help files for the version of OWC you installed. ... I don't see the hta demo that you referenced below! ... The demo shows the owc chart as a "visual" control, i.e., ...
    (microsoft.public.scripting.vbscript)
  • Re: 96 DPI /120 DPI conflict - a possible solution
    ... having some problems displaying our new website on different PC's I ... our website to display properly on 120DPI widescreen laptops. ... after a bit of playing around with the HTML code (which I'm ...
    (microsoft.public.publisher.webdesign)
  • Re: Poor perfomance with Spreadsheet OWC 10 with more than 200 columns
    ... It needs 7 minutes to be load. ... > We have already created other reports with less number of columns (60 ... > We are loading the OWC with the HTML Data Param using Response.Write ...
    (microsoft.public.office.developer.web.components)