Refreshing linked OLE object causes Word to freeze
I've run into an issue where refreshing linked OLE objects causes Word to freeze.Sample projectI've put together a small VSTO AddIn that demonstrates the issue, the source can be downloaded here and...
View ArticleWord 2010 content control to not change content - en dash is changing content
We have an EMC Documentum application highly customized which makes use of Word documents.A part of our application we write meta data into Word documents marked with bookmarks surrounded by content...
View ArticleCapture the position of text in a word document
You can capture the position of text in a word document? I can now find the text in the document, missing just get your position to add an image on the text, would identify the employee's name and put...
View ArticleHow to handle Don't Save Event in Word?
When a user do some changes and instead of saving document user clicks on close button, then Word prompts forSave/Don't Save/CancelIf user choose don't save, how can I handle this event.I have some...
View ArticleHyperlink and position in text.
Hello again,I have an issue with position after getting text from document. When there is a hyperlink - positions in Text fetched from Document.Range() doesn't correspond to positions fetched by...
View ArticleHow to get clicked Recent Folder's path during 'Save As' or BeforeSave event?
I'm interecepting 'Save As' functionality in my Word add-in.I interecept BeforeSave event and invoke my custom 'Save As' functionality.However in word 2013, if i click any of the recent list folders to...
View ArticleCan not edit data labels in old graph chart objects using Word 2010
In Word 2010, Insert object "Microsoft Graph Chart", go to Chart Options and check an item in Data labels, such as "Series Name", "Category Name" or "Value". Click OK, then double-click on a data label...
View ArticleConditional formatting of text in WORD NOT in tables.
Good morning. Can anyone shed light on how to do conditional formatting in a WORD document? The goal is to:1. Turn red, bold formatting on at an open bracket ({)2. Turn black, regular formatting on...
View ArticleAdding non-raster graphic in Word 2013
Hello,I must programmatically create some Word 2013 reports where some vector graphic images must be present (lines, arcs, rectangles, brushes, etc).I would like to know what would be the best approach...
View ArticleSystem.ArgumentException: Value does not fall within the expected range....
I am getting this Error when ...fldTemp.Result.Font = currRange.Font;//where currRange is instance of Word.Range //and fldTemp is instance of Word.Field ;System.ArgumentException: Value does not fall...
View ArticleTurn off picture compression in Interop
I need to use this option of MS Word from code using Interop. How do I do that? I wasn't able to find appropriate member under Application.Options or Document.WebOptions (I'm trying to save .docx as...
View ArticleSend email form in word 2013 by command buttons in word document.
I need to create a combination of of a drop-down or command buttons to send a document via email. There 3 managers that all utilize a common form that needs to be submitted via email to a number of...
View ArticleFont color against dark font backgrounds changing to white in Word 2010
Hello. I am a long-time Word and VBA user and have been experiencing a problem with Word 2010 wherein font colors against a dark font background color always appear, and print, as if they had been set...
View ArticleKB 2817430 (Office 2013 SP1) Disables certain Add-Ins - how did that come about?
The notes for KB 2817430 state that:Microsoft has identified several COM add-ins for Microsoft Office applications that are reported to crash in large volume. In this SP1, the high-crashing versions of...
View ArticleRibbon XML - custom ribbon tab appears twice
I have built a template for a client that contains a custom ribbon tab, and it works great. We don't create new documents using the File New method with this template, because we discovered that then...
View ArticleProblem trying to wrap a Microsoft Word paragraph in XML tags?!? :/
Hello everyone. I really hope this is not a big problem and that some of your could help. I wrote a Macro in VBA like a year ago that was intented to put a tag before every single paragraph in a...
View ArticleHelp with conditional text
I need direction on the easiest way to have a master document that can include on of several paragraphs based upon a value entered at the time of printing. I'm even OK with the value being entered at...
View ArticleHow to replace Allcaps words with Tags Ex: ALLCAPS to ALLCAPS with macros?
How to replace Allcaps words with Tags:ALLCAPS to <small>ALLCAPS</small>i need a macro code
View ArticleLocking Styles
MS Word 2010 on Windows 7I have a form with rich text controls in cells that have a bullet style assigned to the body text areas. The user can enter text in the control and type enter to add additional...
View ArticleUsing Multiple Sendkeys toggles Numlock
Because there is a bug with VBA code picking from the ReferenceKind in the crossreference popup, I am forced to use send keys to make the change. It works fine accept that it toggles on and off...
View Article