msword

Extract Bullets and Tables information in Word doc from c#

Hi All, I need to create an word document based on the template in c#. I have tags for only the paragraphs. Is there any way to replace the bullets and tables that are already available in the template based on the user input. I was able to replace the paragraph with input text using the Replace command in the Word InterOp. Need help ...

Calling AppActivate on a word 2007 window in Windows 7 gives it focus but doesn't bring it to top of stack

I'm trying to manipulate Word from an HTA file application. Currently, when I open word, it opens underneath my application. I'd like to open it on top. I've tried using the following JScript to give Word the focus: wshShell = new ActiveXObject("WScript.Shell"); wshShell.AppActivate(doc.windows.Item(1).caption); This works, and word g...

Is there an alternative to open-xml sdk to generate word documents

I'm trying to generate word documents using open xml sdk. When the documents are small this is no problem (and rather easy). When the documents become larger (+500 pages) I notice the peformance (duration, memory usage, ...) goes down significantly. Googling this problem I came across some posts that point out the same problem. For exce...

How to printing duplex sections with Word 2007

I have a Word 2007 document with many sections. Each section enables / disables duplex using a PCL5 escape code in the header on page 1 of the section. PCL5 printers are getting rarer, especially high volume / capacity ones. Is there an equivalent generic code that could be used instead of a printer specific code? Or is there a PCL6 ...

Can I use a MIME type declaration to get an HTML file to open in MS Word?

Bill James wrote: I was able to render an HTML page with the MIME type set to "application/msword", which caused the browser to spawn Word which imported the html just fine, allowing edits and saving just as if I'd output a real Word doc. That sounds great to me, but I haven't been able to get it to work in any browser (Chrome/FF/S...

Convert PDF to Word offline?

Is there any way to convert a PDF to Word document via code? I'm aware of several online sites that will do it however we cannot use them due to security concerns. Opening the PDF in Adobe, copying all of the text and pasting into Word will not work as all of the text ends up jumbled around the place. Is there any kind of utility tha...

MS Word to Stylesheet

Is there an easy way to automatically convert a bunch of MS Word documents to xslt stylesheets that can be displayed in the browser? What I have is a large collection of forms in Word format that have to be displayed in the browser, or sent to the user, with known fields populated from a data source, edited by a user and, finally, print...

Add a custom Ribbon group to an existing custom Ribbon group in word 2007

Hi How can I add a new group to an existing (3rd party) custom ribbon tab add-in? I know that I can add to out of box ribbons by specifying the Tabs idMSo value but how do I do that for a custom ribbon tab. I have already tried the ID value of the custom ribbon, but it juts duplicates the ribbon? have also tried idMso and idQ attributes...

MS Word DDE: What does destroy my encoding?

I'm facing a problem with a MS Word DDE Automation controlled by our CRM system. The setup Base for the document created is a Word .dot template which fires a macro on Document.New. Inside this macro I create a .Net component registered for COM. Set myCOMObject = CreateObject("MyCOMObject") The component pulls some data from a datab...

How can I integrate an external word processing application with a Java Swing app?

Hi all, I need some genius advice on this one. I have a Java Swing application that needs to launch a word processor in order to allow the user to complete some work, and then retrieve the output of that work and evaluate it later. In my head I am thinking my application can look in the normal places for Open Office or Word executables...

How to find all ways to initiate a paste command in MS Word?

I'm working on an add-in for MS Word and I'd like to create a custom handler for pasting (EditPaste is the built-in command). I can see that, by default, Ctrl+V and Shift+Insert are bound to EditPaste, and there are buttons which also initiate a paste. Unfortunately, some keyboards have additional buttons/combinations which result in a ...

Snipets of code in microsoft word or open office

How can i put snippets of code, in word or open office? i am putting xml and java, if it has good formatting, even maybe a small shade in back, its even better ...

How do I open the html page content with ms word

How do I open the html page content with ms word [javascript code] ...

how to export a html page content to MS word {javascript, ajax, jquery code}

how to export a html page content to ms word {javascript, ajax, jquery code} ...

Multiple Word2007 references in the Running Object Table

Contrary to earlier versions (see here), I find that Word2007 places one entry into the Running Object Table for each instance of WinWord.exe that is running. (Using IROTVIEW.exe supplied with MS VC 6.0!) I am trying to build an application that automates Word, and I would like to keep a hidden instance of Word unavailable to the user, ...

new document format for word interop add-in

I'm having some trouble with a word add-in. I'm attempting to create a new document format, and have it sort-of working. The format is just an encoding on top of an existing docx. In other words, I can strip off the encoding and be left with a valid word document. Saving: Right now, when the user wants to save a document in the new f...

Is there a Platform-independent Web-based replacement for Word Templates?

The above Title is my Manager's words, not mine. :) This is a follow-up to a question that I posted previously. After reading my assessment on the impacts of converting Word Templates from PC to Mac, I have now been asked to investigate whether Word Templates can be replaced with a "Platform-independent Web-based solution" (her words, n...

Image not displaying in ms word after converting it from Bitmap to RTF (but displaying in wordpad)

Hi, I am trying to convert a bitmap file to rtf using Delphi 2007. I used below code for conversion. function BitmapToRTF(pict: TBitmap): string; var bi, bb, rtf: string; bis, bbs: Cardinal; achar: ShortString; hexpict: string; I: Integer; begin GetDIBSizes(pict.Handle, bis, bbs); SetLength(bi, bis); SetLength(bb, bbs)...

Find and replace styles

Hi, I want to find some styles and replace with some alternate styles. This has to be done in the whole document (including Header, Footer, Text boxes and body of the content) This has to be done in Word-VBA environment. Kindly provide me the code for the same. Thanks, Ram ...

Updating/creating Table of Contents in Word using VBA

I'm new to VBA. I'm trying to update the Table of Contents in my Word document everytime I open the document, but it does not seem to update it at all. In ThisDocument I've done the following: Private Sub Document_Open() ActiveDocument.TablesOfContents(1).Update End Sub Can anyone help me? ...