word-2007

how do I mark a file as a data file in a visual studio 2010 vsto clickonce application?

馋奶兔 提交于 2019-12-11 04:29:32
问题 I'm making a Word 2007 add-in with C# 4.0 in Visual Studio 2010. I need an Access 2007 database (a .accdb file) to be placed in the data directory by the clickonce installer. Unfortunately, the file is getting put elsewhere, so the application can't find it at runtime. I've seen various articles refer to using the Application Files dialog on the Publish tab of the project properties to mark the file as a data file, but I have no Application Files button for some reason. Any idea how to make

Essential parts of a Word 2007 xml doument

橙三吉。 提交于 2019-12-10 10:10:43
问题 I have a xml file which I need to open with Microsoft Word 2007. I wrote it on my own. But when I try to open it tells "Some parts are missing or invalid". I think this happens my document does not have all the requied properties defined. So I need to know what are the must-haves for an xml document to be able to be opened with Word 2007. I have following properties defined. cp:coreProperties w:settings w:body (The body has a simple text line.) What else need to be included? Thanks in advance

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

走远了吗. 提交于 2019-12-09 23:44:29
问题 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 click it and press the relevant button in the popup. 回答1: You need to extend the correct contextmenu. The following link describes in words (no source code) how

How to Jump to a Bookmark in Word-VBA and insert text?

天涯浪子 提交于 2019-12-08 16:35:32
问题 I am trying to create a Word document with a very simple word macro. The macro searches for a bookmark that I have placed in the text and then adds a date, 2 weeks into the future, at that location. But when I create a new document from the template I keep getting bookmark not found. I have been through it loads of times and sometimes the bookmark is there, sometimes its there but not allowing you to click "Go to". How can I get it to work? I have added a little piece of code to the Document

Don't add changes made via VBA to the undo history

懵懂的女人 提交于 2019-12-07 06:34:56
问题 I have a set of Word macro's that format documents that are sent to from an external source. Usually there are a lot of changes made to the document, all of which are recorded in the undo history, which I don't want. Is there a way to not add all of these changes to the undo history, but rather just add one undo action that will undo everything the macros have done? Thanks. 回答1: This is not available for Word 2007 or earlier. The UndoRecord object was added in Word 2010 and lets you "clump"

What are the benefits of MS Word content controls?

孤街浪徒 提交于 2019-12-05 21:12:59
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 programmers (if there are any) hang out :) ? RTFMsdn links also welcome. So far I see (from some screencasts) that its now possible to define - template word docs whose content can be stubbed in from a data-behind-XML. You could create this XML as you wish.. e.g.

Essential parts of a Word 2007 xml doument

感情迁移 提交于 2019-12-05 19:20:51
I have a xml file which I need to open with Microsoft Word 2007. I wrote it on my own. But when I try to open it tells "Some parts are missing or invalid". I think this happens my document does not have all the requied properties defined. So I need to know what are the must-haves for an xml document to be able to be opened with Word 2007. I have following properties defined. cp:coreProperties w:settings w:body (The body has a simple text line.) What else need to be included? Thanks in advance. Expressed as Flat OPC XML, it can be as simple as: <?xml version="1.0" encoding="UTF-8" standalone=

Don't add changes made via VBA to the undo history

落花浮王杯 提交于 2019-12-05 11:33:49
I have a set of Word macro's that format documents that are sent to from an external source. Usually there are a lot of changes made to the document, all of which are recorded in the undo history, which I don't want. Is there a way to not add all of these changes to the undo history, but rather just add one undo action that will undo everything the macros have done? Thanks. This is not available for Word 2007 or earlier. The UndoRecord object was added in Word 2010 and lets you "clump" actions made in VBA into a single UndoRecord, to which a custom "label" for the Undo list can be assigned.

Word VBA “Project is unviewable”

回眸只為那壹抹淺笑 提交于 2019-12-05 03:24:24
Does anyone know how to make a template viewable in Word 2007? I created a template, Experiments.dotm , added it using Add-Ins, but when I try to create a module within it, get an error message: "Project is unviewable" The explanation for the "Project is unviewable" problem can be found here : It is important to differentiate between opening an add-in file (for example, by clicking File and then clicking Open) and loading an add-in (for example, by using the Add-Ins button on the Developer tab). Open a file when you want to edit it and test it. Load the file as an add-in when you want to use