msword

How can I convert an .rtf or .doc document to LaTeX?

Unfortunately, I can't use rtf2latex2e because it says that DropUNIX "no longer supports the classic environment". I barely know what I'm doing otherwise, besides dropping my .rtf file onto the DropUNIX program. What else can I use? I don't mind which type of file it is I'm converting to LaTeX (.doc would also be OK, as long as it keep...

Order of Header/FooterParts in OpenXML document

I need to retrieve Header/Footer parts from an OpenXML document in the order that they appear in the document. The following:- foreach (HeaderPart header in document.MainDocumentPart.HeaderParts) { ... } -appears to iterate through the HeaderParts in no particular order. Can anyone explain how to order these correctly? Either by u...

How do I, RegEx Replace in msword C# :(

<name> Test 11 Test 22 </name> Replaced > <name> aaaaaaaaa </name> Hi, How can I determine the contents of a range in WinWord. How can I make for C# ...

How do I export client side content to Word document via javascript?

Hi all, I'm familiar with generating office documents server-side by including the following at the top of the response: <% Response.Buffer = True Response.ContentType = "application/msword" Response.AddHeader "content-disposition", "inline; filename = ASP_Word_Doc.doc" %> I'm currently facing the challenge of doing this purely client...

Reading MS word file in C# with comments

Hi, Currently i have a word document with comments added. The structure of the document is specified in the comment. The document contains embedded images. Now i need to structurally read the document based on the comments and create a html file. The problem is i cant capture the embedded image information currently. Comments c...

Ruby's Truncate unsanitizes MS Word code..

Curious if anyone ever noticed this, but I have a WYSIWYG that users occassionally paste from word into. There is a word sanitizer, but not everyone's a genius. If I parse that text somewhere else, it comes out right. But if I truncate it, then the msword code appears. Does anyone know why truncate unsanitizes this || does anyone know ...

Cannot turn off Design Mode in Word VBA

I'm stumped about this thing - when recording a macro where I basically add some fields and go into Design Mode to be able to replace the dummy text of the placeholder. Now, I go out of Design Mode when recording the macro and everything seems to be working ok. But when playing the macro, it just stops after ActiveDocument.ToggleFormsDes...

Opening byte[] as a file without actually saving it as a file first

What is the best way to open a Word file that was stored as a byte[] in a database? I have to store some documents in an Access database - Word files, 2003 and up - on an application that is strictly run off of a CD. Unfortunately they have to be in the database and can't be stored loose in folders. I'm storing them as an OLE object, an...

Can we use Open XML format for office 2003 files?

Hi, I want to read MS word files which were created using older office tool (office 2000 or office 2003). Currently I am using Office.Interop API with C#, but this API is slow and buggy. It throws COM exceptions which are somewhat difficult to handle. Recently (today morning ;) ) I came to know about Open XML format for working on offi...

Import a word document for editing either with ckedit or.. something else?

Is there a way to accurately import a word doc so that it can be edited with ckeditor? currently, ckeditor allows copy paste from word, but the formatting isnt't exact. So I was wondering if maybe there was some tool out there that we could use to maybe accurately convert the word doc to html to use is ckeditor? ...

Ruby on Rails: In there a way to convert word to html?

maybe a way to batch convert also? ...

Process.Start with 'UseShellExecute = true' doesn't return for corrupt word documents

I am trying to print pdf, ppt, and word documents from my windows service using ShellExecute. Process printingProcess = new Process { StartInfo = { FileName = filePath, WindowStyle ...

Word document downloaded with window.open doesn't open (IE7/IE8)

We're having a problem getting Word documents to download in IE7/IE8 using window.open calls. This problem is currently only happening in our production environment with SSL enabled - our test environment is working correctly but does NOT have SSL enabled. Both environments are running IIS6 and use integrated authentication. The javas...

Where do I get started with VBA and macros programming in Word 2007?

I just came to know that macros in Word/Excel/PowerPoint can be programmed. That is awesome because I've a Word document with 70 tables for styling. I'm a programmer but I don't know VB, VBA or VB .NET. I'm confused with these three. I'm familiar with .NET programming using C#. Now I want to write new macros. Where should I get started?...

paste with delphi in ole automation

i want paste in delphi from richedit to word application i used Following code but Twice paste data in word (duplicate) WordApp := GetActiveOleObject('Word.Application'); WordApp.Visible := True; Wordapp.documents.open('C:\Doc1.docx'); Richedit.Text := 'test text'; Richedit.SelectAll; Richedit.CopyToClipboard; WordApp.Acti...

Upload and display a MS word Document in Android

I need to create an app that takes a MS word document and lets the user of the app interact with the pages meaning viewing each page separately, zooming, going forward and backward. ...

Editing Microsoft Word documents in ASP.Net

Hi, We are converting legacy VB application to ASP.Net application. We have the several word documents stored in SQL server database. Users should be able to edit the word documents and store it in the database. I am trying to use iFrame whose source would be the word document in the server. Users will have MS word installed on client P...

Adding a new page in MS Word using Qt

Hi, I am using Qt 4.5 and using ActiveQt to generate MS Word documents. I am able to create a document based on the ActiveX commands of VBA for MS Word. But I am not able to create a new page at the desired position. I tried selection->dynamicCall("InsertBreak(const QString &)","wdPageBreak"); selection->dynamicCall("InsertParagraph(...

C# -- How can I track what a user selects in a context menu?

Hello all, I am working on a project which aims to gather data on students' writing styles. One issue we are currently facing is the idea of context menus. Is there a way I can be notified when the user right clicks, and then clicks "copy," "paste," or any other option? Thanks, Emily ...

How to programatically select a checkbox in a MS Word 2007 document or template?

I've created a document and I am able to use Content Controls to populate the document, but now there is a requirement to select a checkbox on the form. Is there a "Checkbox Content Control" or must I use the older ActiveX checkbox? ...