msword

How can I disable Word Options button

I'm trying to disable the "Word Options" button in microsoft word 2003. We have 350 machines and need to have them be configured alike. I have setup a template and push it down when the pc restarts, but there are settings that are not in the template that can be changed. I need to implement this very urgently, to make sure that users ar...

Get me started programming and debugging Microsoft Office automation

I'm using Microsoft Office 2003 and creating a bunch of template documents to standardize some tasks. I asked this on Superuser.com and got no response so I'm thinking it's too program-y and hoping I'll have better luck here. I need to automate a work flow that uses a bunch of Office (mostly Word) templates. What I want is to have "My...

PHP COM failed on Windows 2008 Server

I use COM in PHP to manipulate MS Word 2003 with success in Windows server 2003, but the same code are broken in Windows 2008 server. I've changed the user to administrator but still the same error occurred. For the code below: <?php // starting word $word = new COM("word.application") or die("Unable to instantiate Word"); echo "Loaded...

Password protect Open XML Wordprocessing Document

I need to add basic password protection to an Open XML Wordprocessing document. I can either use the COM interface, which is very slow when I have a large number of documents to process; or I can put the data directly in the docx file under <w:settings> <w:documentProtection> which is very fast. However, looking at the requirements to en...

Word document printed on MS Access report using OLE object

Hi, For years, we have been printing Word 2003 documents that have been saved to a OLE object column using an access report. We are using Access 2003. For some reason when we copy a Word 2003 document and paste it into the OLE object it does not print correctly there are subtle differences with the letter spacing. However if we use a...

Creating & Editing MS-Word documents on a linux server?

Looking to develop server-side application that will process documents. The source documents are mostly MS-Word 2003, 2007, i.e. the MS version of Docx. Want the server application to be able to run on both linux or windows. Wanting to know what is the best tool or library for reading and writing MS-Word files under linux. Compatibility...

MS Word splits words in its XML format

I have a Word 2003 document saved as a XML in WordProcessingML format. It contains few placeholders which will be dynamically replaced by an appropriate content. But, the problem is that Word seemingly randomly splits them in the separate words. For example, instead of this: <w:t>${dl.d.out.ecs_rev}</w:t> I have this: ... <w:t>${</w:...

Word opens extra blank document

Howdy, I have an issue on a client machine that seems to be interferring with a word addin that ive built. When any word document opens on the client machine, a second blank document opens also. Ive seen this issue on a number of different machines but havent seen an explanation as to why. Has anyone else seen this behaviour in word ...

Word 2007 Macro to insert text

I'm trying to create a macro to insert some text with custom formatting, then change the font style back to what it was before the macro was run. This is what I have come up with so far but it is giving me an error. Dim myText As String Dim oldFont As Object 'Save old font Set oldFont = Selection.Font 'Insert text with custom font...

Invisibly marking up text in a word document

I wan't to build a word 2007 add-in that allows users to: Hilight pargraphs etc. of text in a word document. Click a toolbar button or select an option from a right-click menu to "mark" the text as being some type of data (there will be 3 of 4 different types of data) Also, the ability to select some text and and unmark it (this would ...

How do I validate a Word 2007 File against wml.xsd with Java?

I would like to validate a given Word 2007 XML file against the Schema defined in wml.xsd. How could it be done in Java? Loading the Schema with the following line is not a problem. But it seems that I have to tweak the validation process becaus I get error messages even on valid input files (I could open and view the input file in Word ...

I need to print 20,000 Word documents, is there a 3rd party tool that will help me do this or do I need to write custom code?

I need to print 20,000 Word documents. Naturally this is a logistical nightmare. For example: if the power goes out, I need some software that will be able to resume where the printing failed. Also, this is something that needs to be done once a month by our client. Do I have to write my own code to manage this? (Word Automation) Or do...

Word MailMerge automation - Find out the data source's encoding

I have a Word add-in I wrote using .NET. The add-in basically processes a Word document which is configured for MailMerge and extracts the data from the data source. I need to know which encoding Word uses to access that data source. When I use a datasource (CSV for example) that is not encoded with my default system locale, Word alerts...

Why does Word not release my file after I call Close() on the document?

I am using the MS Word COM API to print Word documents from C#. See below... internal void PrintWordFileUsingDefaultPrinter(System.IO.FileInfo file) { //Open the document. object fileName = file.FullName; Document doc = app.Documents.Open( ref fileName, ref missing, r...

Word VBA: How to determine a document newly created and modified?

Hi, Does anybody know in Word VBA how to determine: A document is newly created; A document is modified by the user? I found the Document.Saved property, but it does not help in my case. Thank you so much! ...

WORD 2007 w/VBA

Hi Folks, I have a question regarding a WORD 2007 form used to gather information from users. I had it working in WORD 2003 then pulled it over into WORD 2007 and got it working but couldn't leave well enough alone and decided to write it from scratch in WORD 2007. I have cursed that decision ever since.... What I have is some VBA th...

Word 2007 ContentControl.SetPlaceholderText maximum string size

I am planning to set the text in a content control, by using the Word.ContentControl.SetPlaceholderText() method: string myText = "Hello World!"; Word.ContentControl ctrl; ctrl.SetPlaceholderText((null, null, myText); myText = ctrl.PlaceholderText.Value; Can somebody let me know if there is any size limitation on the myText string? ...

CRM mail merge and Word Macros/FILLINs

Hi all, I'm currently using Microsoft CRM4 Mail merge function, which stores Word files as XML files inside CRM. My client has a requirement to prompt the user for more information (not found in CRM) upon mail merging. Previously, we used the Word 'FILLIN' commands, but it does not work with CRM mail merge as it only prompts the use...

.NET - working with MS Word XML

It's always hard for me to understandably (especially in English which isn't my first language) explain, what my problem is, so I'm sorry in advance for intricacy or excessive triviality ;). What I need to do is to 'parse' Word XML document in a specific way. The document converted to xml has some parts that will be put between some fix...

MS Word VBA - Determine extent of "style run"?

Suppose I have a Range reference in Word VBA, and I want to break that down into smaller ranges where the formatting (font, colour, etc.) is identical. For example, if I start with: The quick brown fox jumped over the lazy dog. ...then I would want to get back 5 ranges, as follows: The quick brown fox jumped over the...