Understanding a chart object

C

Colbert Zhou [MSFT]

Hello Dave,

When I create a chart in my side and save the Word as Word XML document, I
did not see the gfxdata. In my side, the XML shows as the following,
-----------------------------------------------------------------------
<v:shape id="Chart 1" o:spid="_x0000_i1025" type="#_x0000_t75"
style="width:435pt;height:255pt;visibility:visible" o:eek:le=""><v:imagedata
src="wordml://03000001.png" o:title=""/><o:lock v:ext="edit"
aspectratio="f"/></v:shape>
-----------------------------------------------------------------------
and the v:imagedata's src attribute indicates WordML take the chart as a
png picture cache. The picture wordml://03000001.png also exists in the
WordML as,
-----------------------------------------------------------------------
<w:binData w:name="wordml://03000001.png"
xml:space="preserve">....</w:binData>
-----------------------------------------------------------------------

There is also a OLEObject together with the png picture,
------------------------------------------------------------------------
<o:OLEObject Type="Embed" ProgID="Excel.Chart.8" ShapeID="Chart 1"
DrawAspect="Content"
ObjectID="_1320068686"><o:WordFieldCodes>\s</o:WordFieldCodes></o:OLEObject>
------------------------------------------------------------------------
That is why when we double click the PNG chart, it converts to an embedded
OLE Excel chart.


Best regards,
Ji Zhou
Microsoft Online Community Support
 
D

David Thielen

Hello Dave,

When I create a chart in my side and save the Word as Word XML document, I
did not see the gfxdata. In my side, the XML shows as the following,

Please take a look at http://www.windwardreports.com/temp/chart.zip

The gfxdata is WordML. In docx it creates a chart.xml file that is
very understandable. So...

For the WordML version I tried uudecoding and it gave me a zip file
that has a chart.xml in it. So it looks like WordML just embeds the
DOCX type of chart.xml in it.

It looks like we can directly create and read charts if done in docx &
WordML (YES!). I still need to dive in to XLSX & PPTX.

Is all of this supported & official or are we on our own using this?

thanks - dave

david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
C

Colbert Zhou [MSFT]

OK. I download it and will do some research on this. I will get back to you
as soon as possible.


Best regards,
Ji Zhou
Microsoft Online Community Support
 
C

Colbert Zhou [MSFT]

Hello Dave,

I find,
1.If I delete the whole o:gfxdata attribute, the word document still works
fine.
2.Even if I replace it with a dump attribute test="test", the word document
still works.

So it seems to have no effect on the document without o:gfxdata.

Actually, in my side, trying a lot of mainpulations, but as long as I save
a document that includes a chart into Word 2003 XML file format, the saved
document would appear as my previous post described. I never see o:gfxdata.
Not sure what clause these string goes into that document. But just based
on my test now, it may be written by an AddIn or something, and I think we
can ignore that part.


Best regards,
Ji Zhou
Microsoft Online Community Support
 
D

David Thielen

Hello Dave,

I find,
1.If I delete the whole o:gfxdata attribute, the word document still works
fine.
2.Even if I replace it with a dump attribute test="test", the word document
still works.

So it seems to have no effect on the document without o:gfxdata.

Actually, in my side, trying a lot of mainpulations, but as long as I save
a document that includes a chart into Word 2003 XML file format, the saved
document would appear as my previous post described. I never see o:gfxdata.
Not sure what clause these string goes into that document. But just based
on my test now, it may be written by an AddIn or something, and I think we
can ignore that part.

ok - thanks. Weird how Word does the same thing different ways.

david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
D

David Thielen

Hello Dave,

I find,
1.If I delete the whole o:gfxdata attribute, the word document still works
fine.
2.Even if I replace it with a dump attribute test="test", the word document
still works.

So it seems to have no effect on the document without o:gfxdata.

Without the gfxdata it is a bitmap. With the gfxdata, when you save it
back as a DOCX file, then it becomes a chart object again.

thanks - dave

david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top