word

Finding words strictly starting with $, Regex C#

I need to find all matches of word which strictly begins with "$" and contains only digits. So I wrote [$]\d+ which gave me 4 matches for $10 $10 $20a a$20 so I thought of using word boundaries using \b: [$]\d+\b But it again matched a$20 for me. I tried \b[$]\d+\b but I failed. I'm looking for saying, ACCEPT ONLY IF THE ...

Word suggestion

Duplicate of how does the google did you mean algorithm work does anyone know how to write a word suggestion feature like Google's "did you mean?" feature? or know where I can find code samples. Thanks ...

word xml to pdf on asp.net c#

I have a report written in MS Word .doc format, 40+ pages. Based on user input I have to change some lines and print it to PDF format. I am on windows hosting server, that means asp.net and c# language. Therefor I cannot use Word application or printer drivers. Basically I have two ideas how to get the PDF format.. - to save this .doc t...

Relation between word length, character size, integer size and byte

What is the relation between word length, character size, integer size, and byte in C++? ...

Looking how to Implement Document Conversion in MOSS 2007

We've been tasked with creating a MOSS workflow that on it's final step will convert a document (most likely from word 2003 or 2007) to PDF and watermark it with the current date. So far I haven't seen a definitive way to do this. Have looked at using the MS Word Interop dlls, but we will not be installing Word (or Office) onto the ser...

How to use COM in VBA for Word?

I am working with VBA, in Microsoft Office 2007 and 2003 (Word specifically). What I need is to use a custom COM object from VBA and use its methods. I already do it in Word 2007 but it crashed in Word 2003. This is the command that I am using: Dim oCOM as Object. Set oCOM = CreateObject("COMDLL.COMObj") I got this error:...

eclipse like word completion in VS

Hi! Does VS have the option or do you know of a plugin that has the same "Complete Word" functionality as found in Eclipse (originates from VIM). Talking about Alt + / (default). This is not intelli-gent in any ways, just scans for words with the same first letters up and down. ...

How to highlight individual words in MS word from addin?

How to highlight individual words in MS word from addin? I want to highlight a word in some text, and only that word instead of all occurrences of that word, how to do that in C# word addin. ...

Allowing user to select text in word vba macro

In VBA for Word 2007, I want to be able to open a document, highlight sections of text and replace those sections with fields linked to a docvariables. The process would be: Open document. Select text. Select docvariable from list. Insert field linked to selected docvariable. Repeat steps 1-4 as required. There is no way to kno...

Create a new selection object at run time in word vba

I asked this question previously but I don't think I was clear enough. I need to write a Word VBA macro which will prompt the user to select some text by highlighting it after the macro has started running and then to process the new selection. This process will repeat an unknown number of times within the macro. The only problem I hav...

SQL Server substring breaking on words, not characters

I'd like to show no more than n characters of a text field in search results to give the user an idea of the content. However, I can't find a way to easily break on words, so I wind up with a partial word at the break. When I want to show: "This student has not submitted his last few assignments", the system might show: "This student ha...

Wildcard search does not work on Mail Merge Fields (MS Word)

I wonder whether anyone ran into this issue before - I spend a dozen of hours but could not figure out. I am writing a Word AddIn in C++. The AddIn is to convert anything between < and >. It works just fine for plain text, but does not work on Mail Merge fields. For example, worked if I typed it, but if the same 'Jane' came from a ma...

Unable to clear my MS Word CustomDictionaries with CustomDictionaries.ClearAll() in C#

I am unable to clear my custom dictionaries. I can add a custom dictionary, set an active custom dictionary and change languages, but can't seem to clear them. The only way to do this is to actually open Word 2007 and go to the spelling options and remove the custom dictionaries. But I need to be able to do this through C#. This is w...

How to programatically re-enable documents in the MS Office list of disabled files

MS Office programs keep a list of disabled files that have caused errors when previously opened. A user can remove documents from this list by accessing the list through the program menu and selecting a document to be re-enabled. (http://support.microsoft.com/kb/286017) The question is: How can this re-enabling of documents be accompl...

How do I delete a command button using Word VBA?

I have a Word document that contains a command button named "update". How can I delete this button using VBA? thanks, Paul ...

Modify placeholder style for word 2007 citations.

I read that defined styles are located at C:\Program Files\Microsoft Office\Office12\Bibliography\Style I use ISO 690 and when I insert citation field placeholder for a reference in document, it uses the following format (source_number). But I need to change that to [source_number], replace () parantheses with []. Could someone experi...

good all character combinations using a given length

Is there a program/tool/utility that would allow me to generate all possible character combinations (lowercase, uppercase, symbols, numbers) over a given length of characters (min-max) ...

How can I copy an image from the clipboard to Microsoft Word through VBScript?

I am trying to copy an image from the clipboard to Microsoft Word using VBScript. How can I do this? ...

Programmatically remove or hide comments/track changes in Word 2007?

I was wondering if this is possible? and if so how? Thanks. ...

Transferring Rich Text data from Access to Word

I've been saddled with supporting an old Access 2003 database (with SQL backend) produced by a now out-of-business contractor. The database includes several 'unconventional' reports. They all use Automation through VBA to output fields directly to a Word document. Kind of like this (pseudo code): for each row{ output(row.id); ...