Re: Microsoft.Office.Interop.Graph from C#

Tech-Archive recommends: Fix windows errors by optimizing your registry



Cindy,

Thanks for the pointer - I found the .chm file; however, the datamodel
described therein does not match the datamodel for
Microsoft.Office.Interop.Graph.

As an example, the help file points to a "Application.Data***.Range"
property:

With myChart.Application
.Data***.Range("A1").Value = 3.14159
End With

However, the Interop.Graph Chart object doesn't have a Range attribute there
(there's "Cells", "Columns", and "Rows" - but no "Range"). I'm sure that I
can muddle around and figure this out, but it would be really nice to have
some documentation to match the interface I'm trying to use!

Thanks again!
KLC

"Cindy M -WordMVP-" wrote:

> Hi =?Utf-8?B?a2MyMjAzMw==?=,
>
> > Is there documentation available for the Interop.Graph PIA? I've done lots of
> > searching and not much finding! I'm trying to automate the
> > creation/manipulation of graph/chart objects in an MSWord document and have
> > managed to get through some of the bare-bones basics, but I'm struggling to
> > get any further without adequate documentation.
> >
> There is a Help file (VBAGR10.chm) for the object model, but for the most part,
> as long as you're manipulating the actual chart, it's the same as Excel's
> charting OM. Both actually use the same charting engine, but have a different
> "data store" (Excel a work*** in a workbook, Graph a Data***).
>
> Note that you can't do much with any textboxes in Graph; there is no interface
> for that.
>
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
> http://www.word.mvps.org
>
> This reply is posted in the Newsgroup; please post any follow question or reply
> in the newsgroup and not by e-mail :-)
>
>
.


Quantcast