Anchoring shapes to a specific range
Hello,I have fairly complex code that we use to highlight changes in publications. Basically, it adds vertical lines in the left margin based on a currently selected range of text. A bit like the...
View ArticleApp for Office Word: How to add OOXML to a specific point
Hi;All the examples I've been reading use either current selection on document or Rich Text Content Control to bind a section, then populate it with App for Office API.What I need to do is add OOXML...
View ArticleSpell check using Word COM object
I have built a winform application where I have added a spell check feature using the Word COM object. I have used the code given...
View ArticleHighlight selective words
Looking for macro/vb6/vb.net code to highlight in yellow certain words (as may be preset in an array), if found, in word 2007 document.
View ArticlewdUndefined - What is it?
Hello there I recorded a macro to try to get an idea of coding for something, and it has a lot of variables set to wdUndefined. Looking it up in the help file wasn't so helpful as the best I could get...
View ArticleHow to bind runtime object datasource to Word Document template in C# Winforms?
I am writing a C# Winforms application that needs to generate Word Document reports from an existing template with content controls. I have went...
View ArticleCode in Word template is actually updating template rather than new Word doc
I've written some code to take a user form's data and update content controls. It works fine when testing the template. It doesn't work when testing in new doc created via the template. The code...
View ArticleEdit image size in table cell of word document
Hi,I need to be able to resize an image inside the table cell of word document that was pasted from clipboard. See below code, hope someone can point me in the right direction.// Add table Word.Table...
View ArticleSet alignment for textbox - microsoft.office.interop.word
Hi,I have a program that creates a textbox in all footers of a word document. I set the size of the textbox based on the width and height of pageSetup.The problem is: when the document have portrait...
View ArticleWrong dmCopies member value when triyng to get print job info from DEVMODE...
We are developing program that monitors print jobs in the Windows system. Notification about print job are received by FindFirstPrinterChangeNotification and FindNextPrinterChangeNotification...
View ArticleWhat does 'ReadingModePrintedPage' do and how to set it.
I have a problem with Word 2013, which might be related to ReadView. It certainly showed up while we were solving whether of not a document loaded by an instance of Word running as a COM object would...
View ArticleChange how to replace based on captured values in Find's RegEx
I am working on bilingual documents (Arabic-English), The two languages have different directions (RTL and LTR respectively) which makes working with it a bit more challenging. I am writing a macro to...
View ArticleImages in RTF documents do not have INCLUDEPICTURE tag
Hi,We need to convert DOC/DOCX documents to .RTF format because we want to upload it in a system (Client provided application) which only displays RTF files.The system only recognizes linked images in...
View Article[SOLVED] Recording new macro in Word 2010
None of the Word 2010 installations at our site are allowing actions to be performed during macro recording in Word. We select Record Macro and get the "casette" cursor. No actions (like enter text,...
View Article"Activedocument" project gets deleted / error #5981
Dear Forum,from time to time users here experience the error message #5981 saying: "Could not open macro storage".This message appears when VBA calls s.th. like...
View ArticleRange.Text produces unexpected result for image
Hi there,I am processing a document in a Word Add-In that I have written. I find that a certain range, which as I found includes a certain image, results in a string with a forward slash character "/"...
View Articlehow can i trancefair my masseges and friends account from hotmail to outlook
please tell me how can i create my recieved email from my email hotmail fathy_el_shafaie@hotmail also all adress and emails to the new mail outlook fathyelshafaie@outlook.com because after i creat...
View Articleintegrating with Office Word from iOS custom application and URL scheme file:///
I am writing an app in iOS (language Objective-C) and try to open a docx file by invoking the method openURL and passing the file location to it as per the scheme "ms-word:ofe|u|<urlofmyfile>"...
View ArticleMacro to delete CRLF and PGH in document
I am working on a project where we are taking a Family cookbook written in the 80's, scanning it, and then publishing it digitally back for the family. I am scanning it as an RTF, then converting it...
View Articleget the co-ordinates and dimensions of a selection
I am writing a MS Word add-in using VSTO. I need to get the co-ordinates and dimensions of a selection (usually a content control) in points. This is so I can map object locations on particular pages,...
View Article