wordprocessingml

Word 2007, Open XML - embedding an image

Do you know what basic information MUST include a paragraph (<w:p/>) in document.xml inside a *.docx document, that specifies an image? I do know there must be: <a:blip r:embed="rId4" /> specifing the relationship id, but what else? It's very hard to find it in Google and experimenting with cutting out tags from a ready document or...

XPS to Word 2007

Is there a way to convert XPS to Word or RTF using VB.NET? ...

How to grab text from word (docx) document in C#?

Hey all, I'm trying to get the plain text from a word document. Specifically, the xpath is giving me trouble. How do you select the tags? Here's the code I have. public static string TextDump(Package package) { StringBuilder builder = new StringBuilder(); XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(package.GetP...

How can I query a Word docx in an ASP.NET app?

I would like to upload a Word 2007 or greater docx file to my web server and convert the table of contents to a simple xml structure. Doing this on the desktop with traditional VBA seems like it would have been easy. Looking at the WordprocessingML XML data used to create the docx file is confusing. Is there a way (without COM) to nav...

Different types of hyperlinks in Word document

I'm writing a small app the takes a path as input and then fetches every docx file in that path, replacing every hyperlink with a keyword. The strange thing is that I found two sorts of hyperlinks, the first one is from WordprocessingDocument ExternalRelationships and the other one is from finding every xml-node matching <w:insrText/> s...

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...

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? ...

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...

Creating a Word document in Coldfusion - how to have pagenumbering?

I am creating a Word format .doc using the following code, then cfheader and cfcontent to serve. All is good but I need to be able to place dynamic information in the header (or footer), or automatic pagenumbering would be a second best option. How should I modify the code? <cfsavecontent variable="myDocument"> <html xmlns:w="urn:sche...