msword

Change page numbers in MS Word 2007 using macros

Hello All, I would like to change page number of all odd pages to page number of even page before that using macros in MS 2007. Can you help me on this? ...

What's the problem in this statement?

I am writing a sample application to convert a DOC file into a PDF. While doing this I'm getting an error. // Creating the instance of WordApplication MSDOC = new Microsoft.Office.Interop.Word.ApplicationClass(); try { MSDOC.Visible = false; MSDOC.Documents.Open(ref Source, ref Unknown, ref Unknown, ref Unknown, ref Unknown...

Is it possible to load an instance of a VSTO addin from a network drive?

I've got a VSTO 3.0 Word Addin. Around here, they do all work off network drives (for backup reasons, etc etc). Anyway, when I'm in the IDE, I can run my project, it automatically starts Word, i can debug, break, etc, just fine. HOWEVER... If I compile the project, then run Word OUTSIDE of the ide, the Addin registry entry is, of cours...

Is there a component that can convert a word RTL document to an image without using a virtual printer?

I need a component that I can use with C# to convert a word document to an image. There are a lot of solutions out there to do so, but almost all of them use a virtual printer to do that. I don't want a virtual printer involved because we have to install it on every client that uses our application (over 500 computers) . I have found Asp...

How to make Word invisible during OLE automation from Delphi

From our application we use OLE automation to build a fairly complex Word-document. I would like to make Word invisible while the document is being made, since there is a lot of pasting and insertions that takes quite a long time. I use the following code to establish a Word connection: function ConnectToWord : TWordAutomationResult; ...

Why does my IMessageFilter not always work?

I'm working on Word automation and to get rid of "Call was rejected by callee" / "the message filter indicated that the application is busy" errors I implemented an IMessageFilter. The messagefilter works like a charm when I automate Word directly like: Word.Documents.Open(...) Document.SaveAs(...) But when I call TOleContainer.DoVer...

When using a virtual printer how I can check that print to file is finished?

I am using a virtual printer to print a word document into an image file in a C# program. So far everything is going fine except that I don't know when the printing process is finished so I can read the content of the generated image. Here's my code : using System; using Microsoft.Office.Interop.Word; using Word=Microsoft.Office.Interop...

How do I 'wait' for a certain dialogue in a Word document macro?

I’ve got a macro that does a search/replace in a selection but at the end of the task it shows the 'Do you want to search the remainder of the document' dialogue and I never want it to search the remainder so I’d like to have it click ‘n’ and then continue with the rest of the doc. In is there a way to do this? ...

Automating Report Writing with Microsoft Office

I write compliance reports for work. I fill in a PDF form and click 'Yes' or 'No' to indicate whether the company is in compliance with a particular statute. I would like to have this form autopopulate my compliance report in Word with the company's name and the appropriate findings and corrective actions. Is this possible? If not, can...

Add a filename field without .doc extension in document header

Working in Office 2007, I'd like to add a filename field in my document header. The document will later be a PDF, so I don't want the extension. I've played with Insert -> QuickParts -> Field, to no avail. I've got a gut feeling that it requires a formula... Thanks in advance if you can help. ...

Word Add-in for working with files over WebDAV

I want to make a ms word add-in, that does this: It asks for a user, password and a network path which correspond to a WebDAV server, for a certain user, and if entered correctly, displays an interface from which a user can select to create, or open a file. When a user opens a document, he can click save, and that file will get updated ...

Run external vba-code in MS Word

Can I link in external code to a Word document? I have a lot of word documents with macros (VBA-code). All with the same code. I would like the code to be run from an external source instead of from within all of those documents. That way, if I have to update the code, I only have one place where I have to do the update. ...

Where are some good resources for word templates for programming needs?

For example, I have a wide variety of needs for templates, like in creating project plans, project specifications, requirements etc. But I have never created my own forms before, so it really helps to see other practical/actual examples. Is there a good central resource for ms word templates for programmers/programming? I have just st...

Updating TOC with formula

Hi All, I've updated page numbers in my word document using a formula. Now page numbers have series like 1,1,2,2,3,3.. But, the numbers in TOC are still same as previous. I've tried updating them using "Update field" option available in MS Word 2007 & 2010. Can I use formula here also to change page numbers? if yes, how? Any help on t...

How do I generate a word 2007 document with graphs using a c# .net program?

I have successfully done this using "MSGraph.Chart.8" in VS 2010 and c# and the graphs look ancient and pixelated like back in 1995 or so. The help online seems all the same. like this one... http://support.microsoft.com/kb/316384 I really need to generate these word documents with nicer graphs in code, or at least edit an existin...

Is there a way to prevent Microsoft Office Document Image Writer from showing the preview?

I am using Microsoft Office Document Image Writer to convert a word document to a tiff file. The problem is that ever time it saves a file it shows it in a preview window. So I like to know if there's a way to prevent it from showing this preview window? here's the code : const string printerName = "Microsoft Office Document Im...

word document in c++ builder5

how to load images on the word document and open the saved word document ...

MSWord Richly Formatted Text Paste into Webgui Text Input Field for Database Submission

I have several richly formatted paragraphs in a Word 2003 document. How do I copy each paragraph and paste it in a text input field with all the formatting in place? The main objective is to make each paragraph as an object in the database so users can add and rearrange these objects(paragraphs) in custom order to generate their custom ...

how do i embed a video in word 2007 ?

I want a video to keep running on a Word 2007 page. This document is not meant for printing. Its just a tutorial. Is there some add-on which will make the video run on the page like how it works on web pages ? ...

Copy WordML to Clipboard from Selection

Is it possible select an area of text in a word 2003/2007 document and then copy the WordML of the selected area to the clipboard? I want to copy the XML format of the text. ...