ooxml

How much has Open XML caught on?

I'm curious as to how many people are using Open XML (OOXML) these days (either pure or via the SDK) in closed and commercial environments. I'm fairly aware of what's going on on the 'public web' (MSDN, OpenXMLDeveloper.org, etc.), but am wondering about SO people's experience with it, both good and bad. Are most people opting out of VB...

Comparing Docx files using OOXML

How can I read word-by-word (with styles) from a docx file. I want to compare two docx files word-by-word and based on the differences I have to write into another docx file (using c# and OOXML). I have tried achieving this by using DocumentFormat.OpenXml.Extensions.dll, OpenXMLdiff.dll and ICSharpCode.SharpZipLib.dll but nothing is givi...

C# API for MS Word Equation editor

Dear all; Is there an API (preferably C#) to access the object model of equations created with MS Word's equation editor? I am looking for an API like the chart object to access properties of charts in Excel, for instance. Any help would be much appreciated. ...

Writing MS Word 2007 XML

How would I write Word 2007 XML (WordProcessingML) on my own? I have a requirement to do so, where I need to write a Word 2007 XML format for a Word template. The important thing is I should convert a Word template doc to XML (by zipping it, etc), where I need to write Word 2007 XML with those respective tags. How can I do this? ...

Save PowerPoint 2007 as PowerPoint 2003 using Open Office SDK 2.0

Is there anyway to use the Open Office SDK 2.0 to save a PowerPoint presention that you created using OOXML to a PowerPoint 2003 presentation? I know if you open a 2007 file and click Save As you have the option to save it as a PowerPoint 97 to 2003 document and I didn't know if I could do this grammatically using this SDK. The reaso...

Use SSIS to populate Excel workbook generated using OOXML

We are trying to generate MS Excel workbook using OOXML and populate data using SSIS. We are able to generate Workbook and sheets, also able to create columns and insert data in the Header cell. We can also populate data using SSIS. But the Sheet (DocumentFormat.OpenXml.Spreadsheet.Sheet) and all cells (DocumentFormat.OpenXml.Spreadshee...

How do I read data from a spreadsheet using the OpenXML Format SDK?

I need to read data from a single worksheet in an Excel 2007 workbook using the Open XML SDK 2.0. I have spent a lot of time searching for basic guidelines to doing this, but I have only found help on creating spreadsheets. How do I iterate rows in a worksheet and then iterate the cells in each row, using this SDK? ...

How to split table to new PowerPoint slide when content flows off current slide using Open XML SDK 2.0

I have a bunch of data that I need to export from a website to a PowerPoint presentation and have been using Open XML SDK 2.0 to perform this task. I have a PowerPoint presentation that I am putting through Open XML SDK 2.0 Productivity Tool to generate the template code that I can use to recreate the export. On one of those slides I...

Write a Word 2007 document in OpenXML

My problem is in two parts: How can I, in Word 2007, put an id on a section so I can easy access this section from my code? For example, if I have Name : Here I want to set the name from my C# code. How can I, from my C# code, fill this section id ? ...

Open XML document ContentControls problem with signed id's

I have an application that generates Open XML documents with Content Controls. To create a new Content Control I use Interop and the method ContentControls.Add. This method returns an instance of the added Content Control. I have some logic that saves the id of the Content Control to reference it later, but in some computers I've been ...

How to change PowerPoint chart data with .NET?

I have a PowerPoint template that contains one slide and on that slide is a chart. I'd like to be able to manipulate that chart's data using .NET. So far I have code that... unzips the Powerpoint file. unzips the embedded excel file (ppt\embeddings\Microsoft_Office_Excel_Worksheet1.xlsx) It successfully manipulates the data in the e...

Binding Data to Word 2007 Content Controls Using Visual Studio Tools for the Office System (3.0)

I found this article - Binding Data to Word 2007 Content Controls Using Visual Studio Tools for the Office System (3.0) - and thought that that's exactly what I'm trying to do. I want to programatically build a product brochure using Content Controls and Open XML. The article in question refers to an accompanying video which unfortunat...

Easy creation/updating of Office Open XML Charts (PowerPoint preferred)

Does anybody know Office-independent .NET components supporting creation/updating full-fledged office open xml charts from different types of documents (PowerPoint preferred) in a couple of lines of code. An example from MSDN How to: Insert a Chart into a Spreadsheet Document does it in a difficult way (as far as I can understand I nee...

Not able to update word/rels/document.xml.rels using PHP ZipArchive

I am trying to load binary data as images into Word documents (Opem XML) using PHP for later usage with XSLT. After opening the Word document as a PHP ZipArchive, I am able to load images into the word/media folder succesfully and also update the word/document.xml file. But I am unable to update the <Relationships/> in the word/rels/doc...

PHP OOXML Libraries?

A customer is asking me to build a module for his running webapp that can load docx files and extract data based on the Headings found in the document. I know docx is just a zip file and most of what I need can be found in word/document.xml, though I'm not looking forward to parsing lists/styles/images/tables and whatever other things th...

Order of Header/FooterParts in OpenXML document

I need to retrieve Header/Footer parts from an OpenXML document in the order that they appear in the document. The following:- foreach (HeaderPart header in document.MainDocumentPart.HeaderParts) { ... } -appears to iterate through the HeaderParts in no particular order. Can anyone explain how to order these correctly? Either by u...

DOCX generation: POI OOXML trims spaces from string

I'm trying to generate a docx-document using poi-ooxml. The following code produces almost the document I want, but for some reason it removes end and start spaces from the text. XWPFDocument document = new XWPFDocument(); XWPFParagraph paragraph1 = document.createParagraph(); XWPFRun para1run1 = paragraph1.createRun(); para1run1.setTe...

OpenXML: Replace <sdt/> element with table in WordprocessingML

I'm using the OpenXML SDK to programatically replace some <w:sdt/> elements with chunks of OpenXML (WordProcessingML) markup. For example, I have a paragraph with these contents: <w:p> <w:run><w:text> Text before </w:text></w:run> <w:sdt><w:sdtPr> ...</w:sdtPr><w:sdtContent>...</w:sdtContent></w:sdt> <w:run><w:text> Text after </...

Alternative to ZIP as a project file format. SQLite or Other?

My Java application is currently using ZIP as a project file format. The project files contain a few XML files and many image and sound files. The project files are getting pretty big, and since I can't find a way with the java.util.zip classes to write to a ZIP file without recreating it, my file saves are becoming very slow. So for e...

Manipulating Microsoft Word Office 2007 .docx document from PHP

I need an option from within PHP to Manipulate .docx (Microsoft Office 2007) document. I need to: Read the internal text Convert to .html To view them inside a browser. To replace text. I know I can use Word Automation, creating a COM object of Microsoft Word, but it's too slow, unstable and I have to have it installed on the server...