msword

Export webpage to Word in ASP

I would like to add a button on top of a webpage, which when clicked should copy the entire webpage to an MS Word document. This has to be done in ASP. ...

import docs to mediawiki

I wish to import a bunch of documents (100's) into a wiki on our company intranet (mediawiki). Lots have embedded images as well. I am wondering if there is a way to import them (images included)? Can't seem to find an offline mediawiki editor, I would be willing to pay for this functionality. --Kevin ...

Can't insert newline in msword form field using Powebuilder OLE

Hi, I have an application written in Powerbuilder 11.5 that automatically fills in form fields of a Word document (MS Word 2003). The Word document is protected so only the form fields can be altered. In the code below you can see I use char(10) + char(13) to insert a newline, however in the saved document all I see is 2 little squar...

Putting several hundred .doc pages into webpage.

I have hundreds of .doc files with text that I need put on web pages. I realize I could convert every .doc file to .txt, then use a server side include to embed the contents of each page into a webpage. This would save a lot of time because I could simply have one .php?txt=... page which will display a different .txt include depending o...

What is the best way to insert source code examples into a Microsoft Word document?

I have to write some documents that will include source code examples. Some of the examples will be written from the IDE, and others would be written in place. My examples are primarily in Java. As someone who is used to LaTeX, doing this in Word is extremely painful. However, I am bound to Word for this. The only options I have seen ar...

How to write a MsWord (.doc) file in Objective C?

Hi all, I need to write pure Msword file in objective C. I have been writing .txt file till now but when i write a .doc file i'm facing encoding issues with all encoding schemes. Microsoft provide library in visual studio to play with .doc files which is not available in Xcode. So is there any way to make it happen? ...

how to insert data as a field in word document from access ?

Hi, I would like insert this in my word document : They are xxx person accessing this month on my application. xxx coming from my access database. I try to add a label, a text box, etc... ubt I can't align the text. Which is the better solution ? Thanks a lot. ...

Merging Word documents in Ruby

I have N Word documents (Office 2003) from which I want to make a single Word document by merging all the N documents together in some order. How do I go about doing this in Ruby? Thanks! It's just the documents that are created in MS Office. I do not use Windows and would prefer non-Windows solutions. EDIT: Will this be easy if the d...

Problem editing word file in PHP

So I need to edit some text in a Word document. I created a Word document and saved it as XML. It is saved correctly (I can open the XML file in MS Word and it looks exactly like the docx original). So then I use PHP DOM to edit some text in the file (just two lines) (EDIT - bellow is already fixed working version): <?php $firstName =...

How do I create an MS Word add-on that automatically recommends terms by detecting what user is typing (muti-word matching)?

I am aware of auto-complete and custom dictionary, but my application requires matching multiple, unspecified number of words or acronyms. I want to suggest to user a standard way of writing a particular term by detecting what she means. Kind of like when you are typing a date and word suggests the standard format. ...

Getting rid of the printer spooling dialog box during programmatic printing

The following is the CScript script I use for the programmatic printing of a Word document. var err = 0; var app = WScript.CreateObject("Word.Application"); try { var filename = WScript.Arguments(0); var enc = (filename.toLowerCase().indexOf(".txt") >= 0) || (filename.toLowerCase().indexOf(".htm")) ? 65001 : 1252; var objDoc = app...

Reading a doc file from python script

Possible Duplicates: Reading/Writing MS Word files in Python Doc, rtf and txt reader in python Is it possible to programatically read the content of a .doc file Is so please provide a valid link or an example for this. ...

How can I programmatically bring up the document properties window in Word and go to the Summary tab?

I am developing a VB6 COM add-in for Microsoft Word and I have added a button to the Ribbon which will save the document to a database. But before the document is saved, I want to take the user to the document properties window so they can fill in the properties for the document (like Title, Subject and Author). I am using the followin...

Clicking on an MSDN URL in MS Word document opens it in IE only

Now that heading doesn't look like it is a problem. Here's the full scoop. Paste this link into an MS Word document. http://msdn.microsoft.com/en-us/library/dd264736.aspx Click (or Ctrl + Click, whatever your settings are) on the link. For me, it always opens up in IE, whatever my default browser happens to be. Now, copy this link in...

How to read MS Word documents using MFC?

I'm working on a project using VC++/MFC and I need to read data from Word documents. I've Googled, but can't find any viable solutions. How can I get started in this MFC? Any help would be appreciated! UPDATE: Information I can find on the MS support site and Google is really out-of-date, and I need work with on Word 2003 or 2007. ...

Manipulating Microsoft Word Office 2007 .docx document from PHP

I need an option from within PHP to Manipulate .docx (Microsoft Office 2007) document. I need to: Read the internal text Convert to .html To view them inside a browser. To replace text. I know I can use Word Automation, creating a COM object of Microsoft Word, but it's too slow, unstable and I have to have it installed on the server...

Replace bookmark text in Word file using Open XML SDK

I assume v2.0 is better... they have some nice "how to:..." examples but bookmarks don't seem to act as obviously as say a Table... a bookmark is defined by two XML elements BookmarkStart & BookmarkEnd. We have some templates with text in as bookmarks and we simply want to replace bookmarks with some other text... no weird formatting is ...

Word OLE Automation - delete first page and manipulate header and footer

Hi, I am using PHP to start Word Automation and manipulate word documents, but i guess it can be done in all any other language. What i need to do is quite simple, i need to remove the first page and add header and footer. Here is my code: $word = new COM('word.applicantion'); $word->Documents->Open('xxx.docx'); $word->Documents[1]...

Word AddIn Doesn't Load, But When I Change Visual Studio's "Solution Configuration" from Debug to Release It Loads

Hi, I apologize if this is a duplicate but I couldn't find any solutions that worked or any symptoms identical to mine. I have a VSTO Word AddIn I've been developing for awhile. I've never changed Visual Studio's (2010) "Solution Configuration" before; I've just left it as Debug. But today my AddIn has stopped loading in Word. It ap...

Opening Word (from Outlook VBA) in Safe Mode

I have a Word document as an attachment to an email that I need to get some data out of to pass to a URL. To do this I'm saving the attachment to the local temp file, then opening the document, and then using the Word object model to pull data out of tables in the document. I'm having a couple of problems when opening the document in V...