msword

How good is Apache POI word support?

On the web page, it looks like there is no current development in the old style .doc. Is it good enough to create complex documents? Can it read all .docs without crashing? What features do (not) work? I am not currently interested in the XML based formats, as I don't control the client side. The excel support seems to be much bet...

Auto-update pageref fields in rtf document

The application I'm working on outputs documents to rtf format and PAGEREF fields are used in a table of contents page and an index page. The problem is that on opening the document the fields do not update and remain blank. They work correctly if you manually update the fields in Word. Is there a way to make these fields auto-update in ...

How can I embed images in an ASP.NET Generated Word File

Hi everyone! I have a quite common problem, as I saw in the various user groups but could not find a suitable answer. What I want to do is generate an ASP.NET page in my website which will have the option of being exported into Microsoft Word .doc format. The method I have used is this: Response.Clear(); Response.AddHeader("content-d...

best practices to import text into html

What is the best practice for importing text into html from a multipage InDesign document, from designer to non-designer. Document designed on a mac going to CMS on PC - hand off the InDesign File or strip text into word file? Supplying all images and pdf as go-by? ...

How do you substring a MERGEFIELD in Word?

This one has me puzzled. It seemed like an easy task, but the solution eludes me: - How do you substring a merge field in a Word template used for mail merging? For example, I have something like {MERGEFIELD barcodevalue} and I want to extract the first 6 characters as it is at the same time an identifier for something else. I can find...

How do I programmatically open a MS Word document without invoking the Document_Open macro

I am trying to use Office Automation to open a word document. The problem is that I would like to open it without invoking the Document_Open macro. Is there a way to do this? The relevant line below is wordApp.Documents.Open() Imports Microsoft.Office.Interop Public Class WordFunctions Public Shared Function ConvertToDoc(ByVal fil...

Trouble accessing MSWord ActiveDocument

When I try to programmatically access a word object model, I get an error no document is active. This appears to be because I am loading the document as not visible using Word automation, and I have to keep it invisible. How would I code the open macro so that it does nothing in this case? "If Not ActiveDocument is Nothing Then" didn'...

How to parse word documents with ruby?

Does anyone know of a library that I can use on OS X/Linux to parse Word files and output the content as HTML? I've had a look at win32ole but as far as I can see it's for Windows only, although I could be wrong. Any suggestions? ...

Is there a python library for editing msword doc files?

I know there are some libraries for editing excel files but is there anything for editing msword 97/2000/2003 .doc files in python? Ideally I'd like to make some minor changes to the formatting of the text based on the contents of the text. A really trivial example would be highlighting every word starting with a capital. ...

Using Word 2007 as CMS page editor

I have been searching for several hours but i couldn't find anything about this... Basically I would like to create a template or plug-in for word 2007 that would allow someone to create new pages for a CMS. What I have in mind is something similar to blog post template. I know how to create a basic template but I can't find a way to pub...

Advice for extracting word text and handling cellbreak characters

Looking for advice (perhaps best practice) We have a MS Word document (office 2007) that we are extracting text from a cell. We can use the following: string text = wordTable.cell(tablerow.index, 1).Range.Text; The text is extracted; however we seem to get extra characters trailing, example "\r\a". Now we could add the following: ...

PHP to clean-up pasted Microsoft input

I have a site where users can post stuff (as in forums, comments, etc) using a customised implementation of TinyMCE. A lot of them like to copy & paste from Word, which means their input often comes with a plethora of associated MS inline formatting. I can't just get rid of <span whatever> as TinyMCE relies on the span tag for some of i...

Best way to show code snippets in word?

Does anyone know a good way to display code in Microsoft Word documents? I have tried to include code as regular text which looks awful and gets in the way when editing regular text. I have also tried inserting objects, a WordPad document and Text Box, into the document then putting the code inside those objects. The code looks much ...

How do I remove Word markup crap when inserting to a form?

I'm building a CMS in PHP and one dread I have is that the users will have to fill the data in from existing Word (and Excel, but nevermind that) documents. Now, I've seen what happens when they carelessly copy and paste from Word to a textarea: the database got filled with crap markup. Now, I could certainly strip all markup myself, bu...

CommandBars.FindControl throwing an exception

I am trying to use the FindControl Method of the CommandBars object in a VSTO Word addin to get what else a command bar object Code is as follows private void WireContextMenu(string MenuID,string Tag, string ID, ref Office.CommandBarButton Control) { try { object missing = System.Type.Missing; ...

Creating tables in a MS Word file using Java

Hello, I want to create a table in a Microsoft Office Word file using Java. Can anybody tell me how to do it with an example. Regards Prashanth Desai ...

tutorials to learn access word documents(.doc) from java

Hi friends, Can anyone direct me to good tutorials and sample programs to learn apache poi to access MS word .doc documents from java. with thanks, Manu ...

.NET application that needs to have built in "Mail Merge" functionality

Is there some way to have the Mail Merge capability in my application? Maybe a MS Word API? ...

Make text paragraph readonly using VBA (Microsoft Word 2003)

Is there a way to make a paragraph in a Microsoft Word 2003 document readonly using VBA? ...

Read and Write in Word file using Visual studio 2005

How to read and write a MS word file in VB.net or C# .net ...