msword

Which objects are _not_ removed during mail merge

Executing mail merge in Word removes a lot of objects from the final document. These include text boxes, most function fields etc. I know that comboboxes and checkboxes are kept. Also some function fields like the { DATE } function. What objects are not removed during mail merge? Where can I find a list? ...

Using java how to add in-code generated jpg images to a word document without saving the file first

Using java how can I add in-code generated jpg images to a word document without saving the file first. The word document needs to be created from scratch in Java (poi does not seem to do the images) ...

Word 2007 VSTO wants to intercept certain document changes

I have developed Word 2007 VSTO in VS2010 using C#. I want to be able to receive notifications about some of Document's collection changes, e.g. InlineShapes. I am also eager to intercept (be notified of) Insert/Picture or when a file is being dragged and dropped onto a Document. Is that possible? I have spent a significant time looking...

Export the content of content control into another word document

Hi, I have a word document with many content controls. How can I export the content of content control into another word document? I'm using C# and open xml sdk. Regards. ...

How to edit a Word Document (.docx) stored in a SQL Server Table?

How to edit a Word Document (.docx) stored in a SQL Server Table? Here is the tentative work flow: Read BLOB from SQL Table through Ideablade Write BLOB to disk as .docx Open .docx using Word User makes changes Save .docx using Word Read .docx into BLOB Write BLOB back to SQL Table through Ideablade All sample code is...

How do I get an Ampersand symbol into Word 2007 .docx XML file?

I am generating a Word doc in xml based on customer input, and of course it blows up whenever an & is used. I tried replacing all instances of & with &, but then & literally shows up in my Word Doc. Here's my code: static String replace(String in) { String ampersand = "&(?![a-zA-Z][a-zA-Z][a-zA-Z]?[a-zA-Z]?;)...

HTML : PHP : Javascript - read & display a word document

is it possible to READ a Microsoft Word documents data\contents and display them in a web page... if yes then how AND how to display the documents particular page display a particular table in the document display a particular area or content in the document... p.s please remember READ the data and display them in webpage.. not em...

xml:space="preserve" in Word 2003 XML document

I'm using XSLT templates to generate word documents in XML format. The problem I'm having is with whitespaces (specifically - tabs). This is an example of a tab inside a paragraph in xml doc: <w:p> <w:r xml:space="preserve"> <w:tab /> <w:t>This is some text after tab</w:t> </w:r> </w:p> I added xml:space="preserve" to save the white...

How should i replace the string in word document with another string using poi?

Hi all, i new to poi.i have a requirement to develop and edit the word document using poi.please send any sample examples for above question. [Edit: Email deleted, come back here if you want answers] regards: venkatesh ...

Extract Headings and Pagenumber of Table of Contents of a Word Document with VBA

Basically what we have here http://stackoverflow.com/questions/274814/getting-the-headings-from-a-word-document Public Sub CreateOutline() Dim docOutline As Word.Document Dim docSource As Word.Document Dim rng As Word.Range Dim astrHeadings As Variant Dim strText As String Dim intLevel As Integer Dim intIt...

Make the header and footer visible in a word document (2003 .doc) through Office Interop Library

I am currently opening a word 2003 .doc file and using the Office Interop to get information out of it. For some reason the program will fail reading information from the header if it is not visible. Has anybody checked to see if the header was visible through this before? How would I go about doing it? From other posts I've found some...

Open Word document from Internet Explorer on intranet

We have an internal website for document management. When you choose to open a document, it run the following script to open the file: <a href="javascript:opendokument('P:\\01\\2-010-01.doc')">012-010-01</a> <SCRIPT language=javascript> function opendokument(dokument){ var objAppl; try{ objAppl = GetObject("","Word.Applicatio...

unable to read a converted HTML file from Word in C#

Problem that I am trying to resolve: I want to convert a word document into HTML and along with that I want to convert specific text into Hyperlinks. I can't find a way in C# to add hyperlinks before saving the word document as HTML. So, I do the trick I save document as HTML and then read the HTML document and replace the specific text...

SCORM Quizzes from Office

Does anyone know of MS Office (Word, Excel or PowerPoint) templates for create a SCORM quiz? Paid or free, but must be customizable in VSTO or VBA. Thx! ...

Is there a way to develop custom SmartArt?

Is there a way to develop custom SmartArt for PowerPoint. I'm not looking for a way to develop "fake" smart art, like add a bunch of shapes and then group them and copy/paste between presenations. I'd like to create a number of new SmartArts that are based on this kind of fake SmartArt that my company uses, but have it "smart", like hitt...

Convert Word document with MergeFields to PDF with form fields

I have a document template in Word .doc format. The Word document contains Merge fields that needs to be populated dynamically. I need to convert the Word document to a PDF with form fields. This PDF can then be populated from our Java application quite easily with iText. The problem I am experiencing is when I try to convert the Word ...

Interop, undo all actions in word undo stack

Hi, I am using c# and word interop. How can I, programmatically, undo all actions in word undo stack? Regards. ...

How to repeat similar fields in a word template?

Hello, I am delving into the realm of programmatically editing a word document based on a template. If for example, the template had a section in it for My address, and they wanted my past addresses going back 5 years, and I have moved 3 times, I will have to put in 3 addresses. Obviously the fields here are exactly the same, but I want...

Word Mail Merge for ASP.NET server

Need to do a mail merge for ASP.NET application. Considered just programatically using word directly but this has liscening implications and is not recommended (http://support.microsoft.com/kb/257757) So was looking into openXML / Word Automation Services. But not sure if can easily achieve a mail merge via this? ...

Print MSWord-Document with com4j

I'm trying to print out a .doc-File with com4j. This is my Code: document.printOut2000(true, false, WdPrintOutRange.wdPrintAllDocument, newDocumentPath, _, _, WdPrintOutItem.wdPrintDocumentContent, 1, _, WdPrintOutPages.wdPrintAllPages, true, true, _, false, 0, 0, 0, 0); I got the values from a recorded Word-Macro and http://msdn.mic...