set text in a Word doc using WordML?

D

David Thielen

C

Colbert Zhou [MSFT]

Hello Dave,

Unfortunately, I am afraid no solution for Excel 2003 and PowerPoint 2003.

1. PowerPoint 2003 does not support XML file format. As far as I know, only
a few of Office 2003 applications support XML file format, for example,
Word, Excel, InfoPath, Visio. As to these applications, we can find their
schema from this download link,
http://www.microsoft.com/downloads/details.aspx?FamilyId=FE118952-3547-420A-
A412-00A2662442D9&displaylang=en
PowerPoint 2003 is not one of them. We can also know this from the
PowerPoint product. When we click the Save As command in PowerPoint, we
cannot find any XML file format option in the SaveAs type combobox.

2. Excel 2003 support XML file format indeed, and we call it SpreadSheetML.
But it only supports basic text and table, not picture, chart, objects. If
we want to save a workbook that includes pictures into Excel 2003 XML
format, we will see the following error, and the picture is ignored in the
saved workbook,
----------------------------------------------------
The following features from your workbook will not be saved in the XML
Spreadsheet:

* AutoShapes, other objects, or charts
* VB project

Do you want to continue saving as an XML Spreadsheet?
----------------------------------------------------
This is documented in http://support.microsoft.com/kb/287739

I understand the concern here. But as product feature is designed and
implemented as this, I think maybe you can consider support XML in your
Addin from Office 2007. That version is based on OpenXML format standard.
Most of the features are available. :)

Hope this clarifies! Have a nice day Sir!


Best regards,
Ji Zhou
Microsoft Online Community Support
 
C

Colbert Zhou [MSFT]

Hello Dave,

Thank you very much! :) Wish you also a greate thanks giving day!

Yes, Excel and PowerPoint 2007/2010 all support Open XML format. Microsoft
has provided a Open XML Format SDK for developers to manipulate Office
documents via XML.

The newest version of the SDK is 2.0,
http://www.microsoft.com/downloads/details.aspx?FamilyId=C6E744E5-36E9-45F5-
8D8C-331DF206E0D0&displaylang=en
But it is still in CTP.

You can download a code snippets package of Open XML Format SDK 2.0 from,
http://www.microsoft.com/downloads/details.aspx?FamilyID=78bea298-a3f9-44cf-
bde0-b4f30dc986df&displaylang=en
It includes many common tasks.


Best regards,
Ji Zhou
Microsoft Online Community Support
 
D

David Thielen

Hello Dave,

Thank you very much! :) Wish you also a greate thanks giving day!

Yes, Excel and PowerPoint 2007/2010 all support Open XML format. Microsoft
has provided a Open XML Format SDK for developers to manipulate Office
documents via XML.

The newest version of the SDK is 2.0,
http://www.microsoft.com/downloads/details.aspx?FamilyId=C6E744E5-36E9-45F5-
8D8C-331DF206E0D0&displaylang=en
But it is still in CTP.

You can download a code snippets package of Open XML Format SDK 2.0 from,
http://www.microsoft.com/downloads/details.aspx?FamilyID=78bea298-a3f9-44cf-
bde0-b4f30dc986df&displaylang=en
It includes many common tasks.

Hi;

Correct me if I am wrong, that SDK lets you edit the DOCX/XLSX/PPTX
files. I need to have my AddIn change the document that Office is
presently adding by creating/editing/deleting & finding bitmaps &
charts.

Is there a way to do that where I give it the snippet of an OpenXML
object of that type?

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]

Oh. It seems I missed the point. I am afraid I have to take another bad
news.

Office OpenXML SDK is designed to create, modify Office documents that is
not currently opened. The most popular scenario is server side Office
documents generation. If using from an AddIn, we have to close the document
first, modify or insert a picture/chart and then load it back. Except this
option, I am afraid we have to use COM object model to insert picture or
chart on fly.


Best regards,
Ji Zhou
Microsoft Online Community Support
 
D

David Thielen

bummer - ok - thanks - dave


Oh. It seems I missed the point. I am afraid I have to take another bad
news.

Office OpenXML SDK is designed to create, modify Office documents that is
not currently opened. The most popular scenario is server side Office
documents generation. If using from an AddIn, we have to close the document
first, modify or insert a picture/chart and then load it back. Except this
option, I am afraid we have to use COM object model to insert picture or
chart on fly.


Best regards,
Ji Zhou
Microsoft Online Community Support


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