word-2007

How to create an automatic Revision History table in Word 2007

Is it possible in Word 2007 to create a revision history table automatically using track changes or some other method? e.g. Revision History DateVersionDescriptionAuthor 16/09/20081.0CreatedJohn Smith 17/09/20081.1Fixed dumb spelling errorsColin Jones ...

Word 2007 Add-in

Okay this question is coming from someone who has never written any code beyond CSS, HTML and some php... Pretty much I'm using Word all day and constantly needing to refer to just a couple of sites and resources on the web. I would like to create a little add-in to go in the Ribbon in Word. I have the full VB 2008 Proffesional editio...

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

Insert HTML into OpenXML Word Document (.Net)

Using OpenXML SDK, I want to insert basic HTML snippets into a Word document. How would you do this: Manipulating XML directly ? Using an XSLT ? using AltChunk ? Moreover, C# or VB examples are more than welcome :) ...

VBA for MS word

There are a lot of free sources to learn about the object model of MSExcel but I failed to find any comprehensive source for a similar source for MS word. Can You suggest a free and comprehensive source for the same? ...

What are the benefits of MS Word content controls ?

Office 2007 brings a new goodie called as 'content controls'. I need to evaluate this to see if this serves as a solution for a problem under research. Due to paucity of time and my general disdain for Office-interop-pains, can someone summarize the benefits? Is it possible to define custom content controls? where do all the word pro...

How do I reference an unsigned assembly from a VSTO Word Doc project?

I created a new project in VS2008. Project type Visual C# > Office > 2007 > Word 2007 Document Added some code.. got Word to do a few jumps through some custom hoops.. all fine. Now I need to reference another assembly (CopyLocal as false) which is not signed. So I add the project reference. Now the project will not build complaining...

Pasting source code in word 2007

If i try to paste source code in word 2007 the spacing between the lines seems to get messed up as all new lines are spaced way apart compared to a programming text editor. Can somebody tell me how to paste source code in word 2007 preserving the formatting and the spacing between lines? ...

What is the best way to populate a Word 2007 template in C#?

Hi, I have a need to populate a Word 2007 document from code, including repeating table sections - currently I use an XML transform on the document.xml portion of the docx, but this is extremely time consuming to setup (each time you edit the template document, you have to recreate the transform.xsl file, which can take up to a day to d...

Troubleshooting: Assembly resolution for a managed dll from a Word VSTO Add-in

I have a Word VSTO Document with a code-behind dll named WordDocument1.dll Project folder D:\Work\Seven\WordAutomation\ContentControls\WordDocument1\bin\Debug I've copied some custom code into an MyAppExecs folder under that. The DLL has a private bin path specified so that code in MyAppExecs is reachable. So on startup, I load a Star...

Intercepting hyperlinks in an embedded Word document

Hello, I'm working on an app which uses embedded Word documents. We have a feature which allows them to insert a small clickable image into the doc - when the user clicks on it, we want the app to open another window based on some data specified by the user when the image was added. What the application does now is: When the image is ...

How to Add Serialized LINQ to SQL Entities to a Word 2007 Document

I built a template-based document generator using the Open XML SDK (1.0), the Word 2007 Content Control Toolkit and LINQ to SQL (using the CodeSmith PLINQO templates). To do this, I serialized the LINQ to SQL entities to XML by retrieving the entity using DataLoadOptions specified in the source code. This works great, except that to ini...

Word 2007 Master Pages

I'm using the Open XML SDK to work with Word 2007 templates, and the project continues to progress nicely. Now I would like to add consistent headers and footers to every document, very similar to an ASP.NET MasterPage. In particular, I'd like to compose a template document with a content document, then fill the content using the approac...

How to Automatically "Reset to Quick Styles from XYZ Template" in Word 2007?

In Word 2007, a user may update the applied styles by selecting the "Reset to Quick Styles from XYZ Template" in the Change Styles menu option. Does anyone know of a way to automate this? I tried adding a macro to the Document_Open() method in the VBA for the Template project, but it errors out. ...

MS Word Plugin, Adding a button which pops up on right click on selected text.

I am working on a shared addin for MS Word 2007. I would like to add a button which pops up when selected text is right clicked. The attached snapshot should make this clear. Currently, the user has to select the text and then click a button on a custom control. It would be a lot easier if after selecting the text, s/he could right cli...

Programatically insert a Word document into an existing document (Word 2007)

I have a Word 2007 document that I want to insert an exsiting Word document into - while preserving the header/footer, graphics, borders etc of both documents. I'm doing this using the Word API in C#. It sounds pretty simple, I mean surely you just use the "InsertFile" method... except that in Word 2007 the "insert file" functionality ...

Help using the Office Interop for Word and Outlook 2007 in VB.NET

I need to start utilizing the interop in my programs to automate several functions in Word and Outlook and I was checking if anyone knew a good place to start. My ultimate goal is for my program to kick off a mail merge, create several different files and save them accordingly, then e-mail the different files to different people based u...

XPS to Word 2007

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

Is it possible to alter a marked field´s field function with Word 2007 VBA?

Hi, i want do the following: In Word 2007 place the Cursor on a field (or mark that field) and call a macro wich edit the field function of that field. (add some string). I´m even grateful for some tipps what term to google. I used the macro recorder and got following: WordBasic.FormatField Field:="CITATION Gro05 \p 9 \l 1031" Th...

Read Word 2007 file and extract text, comments, and commenter name using ASP.NET/C#

I have an ASP.NET app that permits Word 2007 document uploads. Once they are uploaded I'd like to parse out the document text and also any comments made by reviewers. I'd like to be able to get the comments and the commenter initials/name. Are there free libaries to do this? I prefer not to automate Word as this process needs to be some...