msword

How to read text that is present in text box of MS word document?

Hi, I have an word document which I want to convert to text (.txt) file programmatically. I am using C# for this. I am able to read paragraphs and tables from word document and convert them to text. There are some textboxes in the word document and those textboxes contain text that I want to read and put them in text file. My problem is ...

Is it possible to open an html document with word, and have anchor links work within the document?

Hi there, Is it possible to open an html document with word, and have anchor links work within the document? Basically, It'd be nice to do this: <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'&gt; <head></head> <body> <h1>Florida Emergency Supplier Network for 2009-2011</h1> <table id='table_of_contents'>...

how to enumerate all controls/content in a word document using VSTO fo word 2003/2007

I have a use case where some text has to be processed in the entire word content. This includes all content including direct text, text inside tables and inside shapes at all levels. Is there any way to enumerate contents and replace them as well in both 2003 and 2007 versions using VSTO? ...

Convert from Word document to HTML

I want to save the Word document in HTML using Word Viewer without having Word installed in my machine. Is there any way to accomplish this in C#? ...

Remove spacing after paragraph in Word 2007 with VSTO

I am creating and populating a Word 2007 table in C#. When I view the result in Word, each cell has extra vertical space appended after the text. In Word this can be adjusted through the "page layout"/Paragraph/Spacing, where the initial value is 10pt. --------------------------------------------------- | Text... | Text.... | More ...

Reliably getting a character count for .doc files

What's a reliable way to automatically count the characters and/or words in a .doc or .docx file? The only real requirement is a reasonably accurate and reasonably reliable count. It needs to work with documents containing something other than Latin script, so counting characters is good enough for most cases. The count does not necessa...

Count the words and spaces in Microsoft Word

I want to count the words and spaces from a Word document and insert then in a header (or footer) as numbers. I know I can see these statistics (from Tools menu), but how can I insert them in a header? ...

Automating Word to insert an image from a URL

Hello, from Automation in jscript how can I programatically insert an image into Word (2000+) from a URL? The url also is quite long, around 400 characters, and I've read that Word 2007 has a problem sometimes with strings longer than 255 characters. I've used this successfully except that it won't allow urls longer than 255 character...

turn on and off word as email viewer through registry

My default outlook settings in the Mail Format tab has everything (check boxes and the combo for format) disabled for the Message Format section. Need some help on registry tweaks to enable them. Alternatively, a vb script to directly set the registry for these settings will also do. ...

Is it possible to convert a Microsoft Word document to PDF with ColdFusion?

The above question says it all. I know you can create a PDF from an image file or HTML in ColdFusion 8 using CFPDF, but I'm wondering if it's possible to create a PDF from a MS Word document directly - in CF8 or CF9. Could you import the Word document and convert it to HTML or an image file, and then do the conversion? Or is there a sho...

Splitting Word Documents Into Smaller Ones

I want a user to be able to upload a word document and my program then parses the document into separate word documents. The problem is that the splitting will need to be manual as all the word documents are not formatted the same way. My initial thought is before the user uploads, the user tags the sections with a beginning and end tag ...

C# API for MS Word Equation editor

Dear all; Is there an API (preferably C#) to access the object model of equations created with MS Word's equation editor? I am looking for an API like the chart object to access properties of charts in Excel, for instance. Any help would be much appreciated. ...

DSOFramer.ocx Hosting word documents in 64 bit Windows Forms

It looks like the DSOFramer.ocx component is not available for download anymore from MSDN as described here. Also the DSOFramer component is a 32 bit component. Given this, i have 2 questions: Is there any other alternative for hosting a word document in a Windows Form apart from using the DSOFramer.ocx component? If i move to Windows ...

MS Word ActiveX control - is it possible to access open documents?

Hi, I can use the MS Word ActiveX control in order to access some parameters related to the MS Word application itself. I can also open up new documents and then perform automation on those documents. Is it also possible to access documents that were already open on my machine and then perform actions on them? The code I'm using is th...

Covert word document to XSL-FO using Java

I am trying to covert a word document to pdf using java. 'word to XSL-FO to pdf' is the approach i am looking at. In this approach to do 'word to XSL-FO', is there any open source api available? or can you please guide me with steps for implementing it? ...

Serbian characters clipboard problem

Hi, One of my clients needs to post Serbian (cyrillic) text into WordPress weblog by copying it from the MS Word document into WordPress rich text editor. For some reason, all cyrillic characters are converted into their latin equivalents when we paste it into rich editor. The same problem occurs when we try to paste the text into Notepa...

Paste from MS Word document to a Web Form

What is the most common way people preserve basic formatting elements like bold emphasis and italics when copying to a textarea from an MS Word document. I noticed that Gmail does this well and StackOverflow does not. Are there common frameworks that do this? ...

Writing MS Word 2007 XML

How would I write Word 2007 XML (WordProcessingML) on my own? I have a requirement to do so, where I need to write a Word 2007 XML format for a Word template. The important thing is I should convert a Word template doc to XML (by zipping it, etc), where I need to write Word 2007 XML with those respective tags. How can I do this? ...

How to display images in Word generated from HTML?

I'm currently creating a Word document by generating HTML and changing the header information to display as a .doc file. It's a poor man's method, but it works just fine (until now). I was just asked to include an image in the file. My best idea was to base64 embed the image. This works fine in a browser, however Word just gives me a...

Word 2007 Application.ActivePrinter does not get set when default printer is a network printer.

I am trying to use some Word 2007 automation where we give the user the ability to select a printer to print to and compile a word document. We give the ability to print locally or on a network printer. Network printers are specified in the code by their fully qualified path (printername + port if there is one). The problem is in Window...