msword

Can you include a document, whose location is stored in the data souce, in a Word mail merge.

I have a MS SQL database that is a datasource for a MS Word mail merge. One of the fields contains a file name, each record being different. The actual file is stored in a directory on a web site. Is it possible to insert the referenced document at each pass during the merge? ...

Creating Dynamic Tables in Word by C#.NET

I have a C# application where i want to implement a logic for a programm which will open the word document and go to a certain place in the page and create a Table and put values in that. Can any one tell me how to implement this. I am using Visual studio 2005 ...

How to get the page count of a microsoft word document in java?

Hi, for a server based j2ee application, I need to retrieve the number of pages from word documents.. any ideas what works? ...

programatically convert word docx to doc without using ole automation

i'm looking for a way to programatically convert word documents in docx format to doc format without using ole automation. i already have a windows service that does this but it means installing office on a server and it is a little unreliable and not supported. i am aware of the aspose.words product, and i will try it out, but has any...

Word Automation in C#- Creating Tables in Word

Hi all, I have a C# application which will open a word document and then replace some of the predefined bookmarks with the data which i have like Name,Class etc.. It is all are just string values .Now I want to render a Table with dynamic number of rows to the word document.I want the table in a particular place in the document. Can...

Can I programatically control the 'Rotate 180 Degree checkbox' option in HP Printer Driver settings with VBA ?

I'm trying to switch on and off the Rotate 180 degree setting for a HP Laser jet printer (4200/ 4350) using a duplexer unit. The Business has a requirement to "print on both sides", for maximum control I'd like to be able to manipulate at print time (through print macros) whether or not duplex printing is enabled for each of the differe...

What is the best way to populate a Word 2007 template in C#?

Hi, I have a need to populate a Word 2007 document from code, including repeating table sections - currently I use an XML transform on the document.xml portion of the docx, but this is extremely time consuming to setup (each time you edit the template document, you have to recreate the transform.xsl file, which can take up to a day to d...

How can I grab each page of text in a Word doc separately (using .NET)?

I need to determine which pages of a Word document that a keyword occurs on. I have some tools that can get me the text of the document, but nothing that tells me which pages the text occurs on. Does anyone have a good starting place for me? I'm using .NET Thanks! edit: Additional constraint: I can't use any of the Interop stuff. e...

Adding Hyperlinks to created Bookmarks in a Word documnet using Ruby

How do you add a Hyperlink to a word document using an existing bookmark. I have been testing using IRB but continue to get Command Failed. I have attached to a running word application have text selected that I want to tie to the hyperlink. For testing I have been trying to just add a google hyperlnk. I figure once I get that then I wo...

Word macro accessing contents of custom dictionary?

I need to create a way of checking various codes in a Word document. These codes are usually a letter followed by a hyphen and 5 digits, eg M-81406. We need to check that these pre-defined codes have been typed in correctly (there is a pre-determined list of several thousand codes). We cannot use normal Word spell checking as you cannot ...

Encrypted, password-protected file creation

I'm writing a program that creates a Word document with sensitive information. I'd like to encrypt and password protect the document and distribute it in a self-extracting file so that the user can double-click, provide a password, and then receive the unencrypted file. I'm okay creating the Word document, but I'd like a third-party pro...

How to place text in the clipboard so that it pastes as a table in Word?

Using VBA in MS Office, how do I add text to the Windows clipboard so that it will paste into Word as a table? ...

Mail merge in C# with n copies

I just want to create a C# program which will read a word template and create n number of copies of it with mail merge feature.The data to replace is Name and Address the rest of the things in the template should remains the same. Can any one tell me how to do this ? ...

Can I Write AddIn to MS Word which was turn on another AddIn ?

Hello, I Have a problem with my custom Addin to word because sometimes, MS Word was disabled my addin, and I need to write another AddIn, which Was enabled to turn - on/off my first AddIn. Is it possible? sorry for my English :( ...

Prevent Save As Functionality

I need to prevent a document from being saved / saved as (say from ms word). I've looked around and I havn't quite found a satifying answer. I've considered EFS... but I don't think it prevents the user from saving the document as... (though it prevents access to the original source file). Any ideas outthere? ...

Microsoft word Text Parser in "C"

Hi, I would like to know the procedure to adopt to parse and obtain text content from Microsoft word (.doc and .docx) documents . programming language used should be plain "C" (should be gcc). Are there any libraries that already do this job, extension : can i use the same procedure to parse text from Microsoft power point files also ...

Editable Word Document from JSP

Is there a way to create a link in a JSP page to a Microsoft Word document that you can edit and have it post back automatically to the server? I'm using Websphere Portal. Thank you! ...

What is the best way of converting a Microsoft Word document into XHTML?

I would like to programatically convert a Microsoft Word document into XHTML. The language of choice is PHP, so I would appreciate any suggestions with PHP. The initial idea is trying to convert the doc file into odt, and then use the Odt2Xhtml PHP class to get it into XHTML format. Any better way to do this? ...

Process.Start() throwing intermittent "No application is associated.." on .DOC files

System.Diagnostics.Process.Start() is throwing intermittent System.ComponentModel.Win32Exception: No application is associated with the specified file for this operation. The file is a .doc file. They are always able to open it manually (double-click). What could be the problem? Thanks ...

Systems documentation and MS Word

We have some MS Word files documenting troubleshooting steps for certain custom systems. Those documents use a convention to mark things like table names, class names, fields, etc in a certain font so that it stands out and the reader knows they were entered verbatim. However, these items are rarely spell-checker friendly. This is rea...