msword

Specifying location of new inlineshape in Word VBA?

I'm working on a document "wizard" for the company that I work for. It's a .dot file with a header consisting of some text and some form fields, and a lot of VBA code. The body of the document is pulled in as an OLE object from a separate .doc file. Currently, this is being done as a Shape, rather than an InlineShape. I did this because...

How to repaint a Word 2003 menubar

I have a Word 2003 .dot template that changes its menu based on the condition of the active document. The DocumentChange, DocumentOpen and NewDocument events of Word.Application trigger setting the .Visible and .Enabled properties of CommandBarButton controls. On switching active documents, controls exposed by changing the Visible prop...

Developing MS Word add-in

Hi, Anyone knows of a good tool for developing add-ins for Word in .net? Hopefully something that supports both office 2003 and 2007. Thanks. ...

insert data from database into word according to the table format in the word

now i need to insert some data from the sqlserver into a word,i know how to use bookmark and the office interop api do that but it's slow to call the word process do that and it's coupling between the bookmark define and the code , is it possible to do this without word process start?if not are there any template engine to do this? ...

How can I read a Word 2007 .docx file?

I'd like to search a Word 2007 file (.docx) for a text string, e.g., "some special phrase" that could/would be found from a search within Word. Is there a way from Python to see the text? I have no interest in formatting - I just want to classify documents as having or not having "some special phrase". Thanks! Gerry ...

Create Word Document using PHP in Linux

Whats the available solutions for PHP to create word document in linux environment? ...

extracting text from MS word files in python

for working with MS word files in python, there is python win32 extensions, which can be used in windows. How do I do the same in linux? Is there any library? ...

Can Java POI write image to word document?

Anyone know if it is possible? And got any sample code for this? Or any other java API that can do this? ...

How do I embed a custom user-control in MS Word ?

Context: The environment is .Net 3.0 + WPF land, the DB is abstracted well out into the distance and the solution would need to work for Office 2000 and up I guess.. The need is to get a customized report for which the user would like to have certain application windows/boxes (e.g. a trend graph) displayed in Word. The window can be sh...

Creating, opening and printing a word file from C++

Hello everyone, I have three related questions. I want to create a word file with a name from C++. I want to be able to sent the printing command to this file, so that the file is being printed without the user having to open the document and do it manually and I want to be able to open the document. Opening the document should just op...

What can cause mutated Word document attachements?

We are sending out Word documents via email (automated system, not by hand). The email is sent to the user, and CC'd to me. We are getting reports that some users are having the attachments come through corrupted, though when we open the copy that is CC'd to me, it opens fine. When the user forwards us the copy they received, then we c...

Automating Word Mailmerge not working as expected

I'm having a problem with some mail merge code that is supposed to produce letters within our application. I'm aware that this code is a bit rough at the moment, but we're in the "Get something working" phase before we tidy it up. Now the way this is supposed to work, and the way it works when we do it manually, is we have a file (the f...

Easiest way to migrate Word 2003 custom macro toolbars into Word 2007?

I have a series of macros and toolbars that I developed for Word 2003. Now that my office is upgrading to Word 2007, I need to migrate them. The macros themselves migrate with zero effort, but the toolbars are a different issue. A random subset of the toolbars show up in the "Add-Ins" ribbon tab, but I haven't found a way to control w...

Create a new Word Document using VSTO

How can I create a new Word document pro grammatically using Visual Studio Tools for Office? ...

How do I insert HTML-Formatted Strings into a Microsoft Word Document using Visual Basic while preserving formatting?

I use Visual Basic and an automation interface to retrieve strings from an external application. These strings contain simple html formatting codes (<b>, <i>, etc.). Is there any easy function in Visual Basic for Word to insert these strings into a word document and convert the html formatting codes to word formatting? ...

Word 97-2003 document to HTML conversion - programatically

I need to convert Word binary documents (version 97 up to 2003) into HTML documents programatically. I have googled for 3rd party libraries but most results are junk built on top of System.IO.Package which, ofcourse, are useless for other word documents except Word 2007 - Office Open XML. Do you know a good tool / library for .NET to pr...

Apache POI HWPF - Output a table to Microsoft Word

I've been Googling for quite awhile and haven't found a definitive answer. Is it possible to output a table using Apache POI? It looks like it hasn't been implemented, since the main developer stopped working on it like 5 years ago. Is there an open source alternative to POI that can do this? ...

What's the best way to use MS Word to write a 60 page technical document

I'm revising an existing 60 page PDF document for a new product. I have to use MS-Word. Is there a good reference on the best practices for using Word? For instance, I've heard that it's best to keep everything in "sections". I'll be doing a TOC, lots of illustrations, multiple columns, etc. It's just going to be me revising it, so versi...

Who uses DocBook?

Hi there. I was wondering what people use for Documentation and saw that this had already been asked here There seemed to be a lot of votes for LaTeX, I'm an advocate of LaTeX over Word due to its WYGIWYW (What You Get is What You Want) approach. However, its not easy to convince others to use it. I'm inertested to hear from anyone wh...

Replace Placeholders in word document with c#

Hi there, I have a template in word (.docx) format and want to replace some placeholders in this template with my own data, do you know where I can find the right classes for this project? It would be nice for me to know the namespace. Are there any newer classes for handling word documents in the docx format (xml) than the com classes?...