msword

Word Automation launched with VS 2008 fails

Hi, I have deployed my web application (ASP.NET/C#) on the Server (Win 2003) to make it possible to merge word documents and open them. Everything worked fine: a .doc ducment was added to the bottom of another .doc document (using Microsoft.Office.Interop.Word libraries) and then opened with the client MS Word. Unfortunately in the we...

Word 2010 VSTO development

I'm trying to create a Word 2010/2007 VSTO add-in and have run into a couple of questions: If I use the Backstage View and other 2010 features in the Ribbon, how will Word 2007 handle them? (i.e. do I need to do some kind of conditional checking for version? If so, how?) The whole Primary Interop thing. Does setting a reference to Word...

Insert bold text into Word using VBA

I wrote a little script that exports certain Excel cell values into Word. However, certain inserts need to be bold. And there doesn't seem to be an easy way to do this. This code loops through the records and adds them to the Word document Do While intRow < intTotalRows + 1 strTemp = " ;b;" e; " If st...

Import MS Word form fields into MS Access

Hi folks I have created an application form using MS Word and a whole bunch of form fields, and I have an Access db that can import all the data I need from this Word doc, thanks to this: http://msdn.microsoft.com/en-us/library/aa155434%28office.10%29.aspx Now everything works just fine (I even managed to get it to import into multip...

I am trying to remove the bed-each from my Microsoft Word application

Every time when I attempt to cut and paste a hyperlink from the Internet onto my Microsoft Word it becomes embedded and I get the whole URL. Is there any way that I can reverse this? Thank you for any help ...

How to add a Bookmark control to a Word document at runtime

I want to add in a C# application a bookmark to a particular range to my Word document at runtime . I have found one solution Microsoft.Office.Tools.Word.Bookmark bookmark1; bookmark1 = this.Controls.AddBookmark(this.Paragraphs[1].Range, "bookmark1"); But an error shows that the Windows form has no definition for AddBookmark. Please he...

Display word custom document property on screentip

On your Windows machine if you just hover your mouse over any Microsoft Office Word 2007/2010 document you get a screentip which generally contains metadata information such as Type,Authors, Size and DateModified. These metadata are the builtin document properties of any word document. I'm wondering if there is any (VSTO/other/hacked)wa...

Extract metadata from old Word files (from 2.0 onwards)

Hi. I have to extract metadata from a lot (my small working sample has hundreds, the total will probably be thousands) of Microsoft Office files, mostly Word ones. These files Word versions go from Word 2.0 to Word 2007. I have to do it in .net 3.5 (using c#) and it's a local winforms application. I can extract metadata from the most...

Include Word Application level Addin functionality to the right click menu of Windows on word documents

On a windows machine if you select any word document (.doc|.docx) and right click your mouse you get a menu with common commands such as Open, Edit, New, Print etc ... I have developed a Application level word 2007 AddIn which installs correctly on Windows machines. It has a ribbon with many functionality/commands such as A,B,C etc inco...

Custom XML binding causes word doc to lose content control style/font

I am trying to do a word document that has content control bindings to an XML document that I am swapping out for custom.xml in the word docx package. When I created my original document, I added fonts and size and style to the content control text. This made it fit the rest of my documents style. Then when I swap in the custom XML con...

Is it possible to update the TOC (TableOfContents) of a Word document generated with Syncfusion's DocIO lib?

Hello, Our application generates a Word document using Syncfusion's DocIO libs. Basically, we load a template and insert into it specific texts in specific bookmarks, generating a Word document that the user downloads on-the-fly. The issue we are facing is: The template is 4 pages long and has TOC. As we add content, the document si...

Image quality in "Web Page, Filtered"

Hi, This is an important issue and I would be grateful for a solution. I convert a document (RTF) with several embedded images to HTML with Word 2010. The original quality of all images is 200 dpi. When saving as "Web Page, Filtered", all images are reduced to 96 dpi, despite of what I set in the "Save As" dialog -> Tools -> Web Optio...

C# Word Interop

I have an application in which I need to be able to print an existing Word 2007 format document. Looking around I can't see any free components that will facilitate this without the need for Word to be installed. Does anyone know of any? Assuming that I have to have Word installed to print the docx file, I was going to use the COM inte...

Make Word's automatic spell-checking pick up dictionary changes

In MS Word it's possible to add words to a custom dictionary so they're recognized. If a word is not recognized, Word automatically puts a red squiggly line underneath it. If you add that word to the custom dictionary, this line disappears. What I'd like to do is perform this process automatically via a macro. It appears that one has to ...

Opening word document with read mode using python

I have a python applicaiton that need to luanch a word document . is there any option to luanch a word document with read mode only from python ? ...

Continuous page numbers in Word

1) I am using Word 2007. I have a document with several section breaks. Now I want to add a page number to every page in the footer section. When I use Insert - Footer, it starts with 1 for every section. There are hundreds of sections and I do not want to press "same as previous" button for each section. How do I insert continuous page ...

How can I fill (not replace) TAB with Spaces in MSWord?

How can I fill (not replace) TAB with Spaces in MS Office Word? In other word, have a look at the following pic: 1 -> 222 -> 3 111 -> 2 -> 333 11 -> 22 -> 33 11 -> 2222 -> 3333 Suppose that -> is indicated one TAB. As you see, each column is justified from left. I need to fill each TAB with Spaces, so that the ju...

Word automation does only work for administrator, or with a delay after creating word.application

We have a program made in Borland Delphi that uses Word automation to create documents. On an installation (terminal server) we are only able to get the Word automation to work when running as local administrator. When runnnig as anoter user we get an error message "Opdracht mislukt -2146824090" (its dutch version of Office), wich I gues...

COMException (0x800A13E9) - Word interop services

I am getting this stacktrace: System.Runtime.InteropServices.COMException (0x800A13E9): Word ðú÷ì ááòéä. at Microsoft.Office.Interop.Word.Documents.Add(Object& Template, Object& NewTemplate, Object& DocumentType, Object& Visible) at Crm.DocumentGeneration.Printing.DocumentsPrinter.MergeDocuments(ApplicationClass& wordApp, IEnume...

Delete a MS Word Page using macros

Hi All, How can I delete certain page from MS Word document using macros? The code should be compatible from 2000 to Word 2010. I've tried using page bookmark to delete page but, output is varying in different versions. Is there any other solution than this? ...