msword

Does docx merging in TortoiseSVN work?

I'm trying to use some scripts that came from TortoiseSVN to do some docx merges, but the script doesn't seem to be working right. Has anybody used this feature in TortoiseSVN? How does it normally work? ...

How to save Flex form data into Word document?

I want to save the contents of my Flex application form into a word document. It has rich formatting, hyperlinks, etc. Is is possible to do this? The output can be either ".doc" or ".rtf" file. Thanks, Nirmal ...

Word and IE (Close Word needs to Refresh IE)

I am able to open Word with a specific template from the browser, but when Word closes and the user returns to the browser the page needs to be refreshed. ...

Are all MS Word documents serialized in an XML readable format?

I'm trying to understand how Word files are rebuilt when opened by Microsoft Word, and in what format they are serialized when edits are saved and a file closed. Any information you may have would be very useful to me? Thanks ...

How to paste metafile from Microsoft Word at expected size

I'm having an issue in a WPF application using the RichTextBox where content being pasted in from Microsoft Word is mangled. To work around the issue, I found that Word includes a metafile on the clipboard, and I can get the metafile from the clipboard using interop (WPF wouldn't properly import the metafile either). My problem, though...

How can I find the number of highlighted chunks of text in an MS Word Document

Hi all, I am writing a macro in MS Word which should find all highlighted text in a document and perform some action on each. I am planning a loop to do the search and manipulation part and have no problem with this portion of the code. But I don't know how to find how many iterations I'm going to need. Is there a way to determine the nu...

Is there a way to package a MS Word macro together with the associated toolbar icon

I have developed two MS Word macros and assigned each an icon. I have also added a custom toolbar, named after the project, and added the two macro icons to that toolbar. Now, how do I package the whole thing (macros, icons, and custom toolbar) to send it to my customer? ...

Java based HTML to Microsoft Word conversion tools

I am looking for a open source library in Java for HTML Microsoft Word conversion. I have found many tools for Word to HTML conversion but not too many for converse. I am not trying to build the RTF document from scratch. I am trying to convert formatted HTML documents to RTF documents. I was able to find a converter for HTML to PDF(Fly...

generating dynamic word documents for mass mailing

I need to generate a mass mailing based on a word document model with PHP. Given is a database with the adresses and the data that need to be filled in my word model. I want to generate a single word document with the different adresses and field contents from the database. We have a Linux server and the COM object is not avalaible. I...

Open XML document ContentControls problem with signed id's

I have an application that generates Open XML documents with Content Controls. To create a new Content Control I use Interop and the method ContentControls.Add. This method returns an instance of the added Content Control. I have some logic that saves the id of the Content Control to reference it later, but in some computers I've been ...

Using Firefox to download xml word doc. Image won't show.

We have an xml word doc with image on title page that downloads correctly via ftp but the image is always missing if we try to download it via a link in an html page. We're using Firefox if that makes a difference. But we also tried it using Opera, with the same results. Here's the link we're using: $fileDest = './mydoc.xml'; <a type="m...

How to convert .doc or .docx files to .txt

I'm wondering how you can convert Word .doc/.docx files to text files through Java. I understand that there's an option where I can do this through Word itself but I would like to be able to do something like this: java DocConvert somedocfile.doc converted.txt Thanks. ...

How to pass argument to a Microsoft Word macro ?

I need to run a macro in Word with a parameter. I've tried to declare a parameter for the module in the VB Macro Editor but it doesn't work - the macro will be invisible in the macro list when I do so. I don't know how to do this and whether it is posible to do so or not in MS Word 2007. Please help. ...

How to import a macro file (previously exported as .bas file) to Microsoft Word using command line?

I'm writing a command-line program that has a step in which I need to replace text in a Word file. The replacing task is accomplished using Word macro. What I need to do now is to call this macro from command-line. At the moment we can do this by using the -mMacroName parameter of 'winword.exe', i.e. \winword.exe -mMacroName. But this n...

How to list all files of a given folder (recursively through sub-folder)?

I'm writing a microsoft word macro and having difficulty with vb.net. Please help. ...

Force Normal View when generating Word doc via HTML

I am creating an HTML document which we are then pushing out to MS Word using a "application/msword" content type. This works so far except that the files open in Word with Web View. Once Normal View is selected all works fine. Is there any way to force Word to open with Normal View instead of Web View? ...

Display date difference in MS Word field

I have an CV and would like to automatically update my age when opening. So, what formula should I insert in a MS Word field? Something like: {= {DATE} - {"01/01/1983"} } ...

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

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 t...

.net 3.5 word.document: how to add image from byte[]

How can one use a byte[] that represents an image to add a picture into an instance of a word.document? I got as far as putting that byte[] into a stream, and the stream to an Image class instance. what should I do next? *without using the clipboard.paste, and without saving into an image file first. ...

Opening Word Document from IE

Hello all, I'm opening a word document through IE on a local network, it opens up fine but if a document is password protected then it should prompt for the password which it doesn't. Is there something that I should be doing to get the password prompt? The way I'm opening the document is by a link on a web page e.g. <a href="\\path\...