msword

Creating an Equation Editor 3.0 equation in a Word 2003 document using a marco (or through the API)

I think the title is fully descriptive now. Anyway, I need to generate a word document from my delphi application. It needs to choose from one of four different equations (with some specific parameters for each document). So far I have manage to create the whole document programmatically except the equation. Is it possible to create eq...

How to Insert a Newline into a Table Cell in Word?

when i insert '\r\n' into a cell of a table in word document using c# ,it does not work ,why ? how to do it ? ...

Open Word Document with WPF without open dialog

I have the path to a Word document saved in an SQL Database. I am able to retrieve the path but I cannot work out the best approach to open the Word document from WPF without using the OpenFileDialog. I've given up any thoughts of embedding Word in WPF as it has too many gotchas. I just want to be able to click a button or hyperlink a...

System.AccessViolationException: Attempted to read or write protected memory.

I get the following exception when I try to "find and replace" in a Word 2007 working on Windows Vista or Windows 7. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Microsoft.Office.Interop.Word.Find.Execute(Object& FindText, Objec...

Word 2010 for writing invoices, starting with XML

Hello, we are doing quite some invoice generation, and so far it is based on some pretty awful word automation that is now in for a review with Word 2010. I would love to move to a XML based format for storing / presenting invoices, only going to a word document in the last stage. This means I can use easily othermeans to present an in...

MS Word: Mailmerge hyperlinks with query get URL string with a MERGEFIELD

I'm trying to send an email merging one document (.docx) with a contacts database (via OleDB). Using MS Word 2007, it seems easy (it works for easy things: name, address, ...) but I can't find how fill an query-get URLD string with a merge field inside an hyperlink. An hyperlink like: Click here where here is an hyperlink to http://...

C# Spell checker Problem

I've incorporated spell check into my win forms C# project. This is my code. public void CheckSpelling() { try { // declare local variables to track error count // and information int SpellingErrors = 0; string ErrorCountMessage = string.Empty; // create an instance of a word application...

Microsoft Word to HTML in PHP script

I want to know the PHP code for Word to HTML conversion. When we retrive the Word document from the database and display in the frontend, the Word document should display as HTML page. ...

How do I append Word templates to a new document in VB.NET?

I'm poking around to see if this app can be done. Basically the end user needs to create a bunch of export documents that are populated from a database. There will be numerous document templates (.dot) and the end result will be the user choosing templates x y and z to include for documentation, click a button and have the app create...

Setting "Picture Position" in Word 2007 Macro?

I've got a macro to past an image from the clipboard, resize it, and set the Text wrapping to TopBottom. However, I still need to be able to modify the alignment properties as you can on the "Picture Position" tab of the "Advanced Layout" dialog (you can get to that dialog if you select the picture, right click, choose "Text Wrapping" -...

Msword doument to html conversion in php script?

how did write the php script for msword document to html conversion. ...

Word MERGEFIELD wildcard not correctly matching

Below is my MERGEFIELD code: { IF { MERGEFIELD Subs_State } = "GA" "blah blah" "{ IF { MERGEFIELD CEOrgStates } = "*GA*" "blah blah" ""} "} I'm pulling records from a MS Access database. My goal is to check whether a record has Subs_State field matching "GA", or the CEOrgStates has the word "GA" (some records have stuff like "|FL|CA|GA...

How to save MS Word template file (dotx) as docx when document is opened in Internet Explorer

I am maintaining a web application that allows word template documents do be opened inside the browser. Recently the client upgraded to windows 7 and MS Word 2007 and my problems started... When a template document is opened inside the browser and saved, the original file is overwrited instead of a new word file being created. Is ther...

Documents stored in SQL table

I have a legacy FoxPro application which stores documents in an SQL table in a field with the image datatype. FoxPro accesses the image datatype as a "General" field which can be used to store various files. I have a FoxPro control which interfaces with the General field for modifying/viewing the document that was stored. I need to migra...

Change footer text color of doc file

I have world doc, my requirement is to change footer text color of that documnet. How can i do this using c#. ...

Words issues with UTF8: What should content staff use?

Hello, Word is giving me alot of issues with UTF8 content, it usually comes out garbled and is alot of hassle converting. What editor would you advise content staff to use that is web safe? Regards Aaron ...

Missing file header.htm file while opening a Microsoft Word document

I have a Word document with extension sanjay.doc when I open it I get a dialog box saying: "Problems during load" Problems came up in the following areas during load: Missing file: ...\sanjay files\header.htm What could be the problem? When I try to convert the document file to text, the content of the text has html tags. ...

Why wont this entire word doc file generate from my php script?

Here's the php script I'm using on a linux environment: <?php include("../_inc/odbcw.php"); //connect string $cat = $_GET["cat"]; if($_GET["st"]){$crs_query = "select crs_no, title, credits, abstr, prereq, coreq, lab_fee from xxx where active = 'Y' and cat = '".$cat."' and spec_top = 'Y' and prog='UNDG' order by crs_no";} else {$crs...

Open the Word Application from a button on a web page

I'm developing a proof of concept web application: A web page with a button that opens the Word Application installed on the user's PC. I'm stuck with a C# project in Visual Studio 2008 Express (Windows XP client, LAMP server). I've followed the Writing an ActiveX Control in .NET tutorial and after some tuning it worked fine. Then I add...

Programmatically clean Word-generated HTML while preserving styles?

In my current company, we have this decade old...let's call it a "Hello World" application. While wanting to create a newer version of it, we also want to preserve older entries. These older entries contain hideous Word-generated HTML which was never filtered before. If and when we move to a newer system, I'd prefer to have that HTML c...