word

Open a Word Document

How do you open a word document in VB.NET. The document is a manual for the program. ...

Remove MS Word macro using VBScript

I want to remove all vba-modules from an MS Word template using VBScript. I wrote the following script. const wdDoNotSaveChanges = 0 WScript.Echo "starting Word..." Dim oApplication, doc Set oApplication = CreateObject("Word.Application") WScript.Echo "opening template..." oApplication.Documents.Open "path\to\test.dot" Set doc = oApp...

How to find the position or location of string in given document

How to find the position or location of string in given document.I have one word document and i want to store all its words and word positions in database so thats why i need to find the position of the words. so please tell me how can i find position or location of word or string in given document. i intend to use vb.net or c# for a...

Is there a way to use Unicode paths/filenames in Word 2003 or higher VBA code?

Is there a way to use Unicode paths/filenames in Word 2003 or higher VBA code? It appears that Word supports Unicode path/filenames via its interactive dialogues, but when our VBA code tries to manipulate Unicode path/filenames exposed via Word properties, we get back strings with lots of question marks. Is there something we need to d...

Generating a Word doc with an image embedded into it over SSL in JAVA.

Here is some code snippet to give you an idea of what I got so far. I can output the Word document fine this way. I can also access the image via the URL in the browser, but the Word documents src does not appear to be hitting the servlet(according to some logs I have). ExportServlet.java ` response.setContentType("application/ms-...

C# copy image form PowerPoint to Word

I need a application to copy text and images form PowerPoint to Word. I use this libraries: Microsoft.Office.Interop.PowerPoint and Microsoft.Office.Interop.Word. The text s easy to transfer, but when I find in PowerPoint a shape containing only a image, it show this error: "A generic error occured GDI+", at this part of code: foreach ...

Adding html text to Word using Interop

I'm trying to add some HTML formatted text to Word using Office Interop. My code looks like this: Clipboard.SetText(notes, TextDataFormat.Html); pgCriteria.Range.Paste(); but it's throwing a Command Failed exception. Any idea? Thank you ...

How do you hyperlink to Word 2007 help pages?

I want to hyperlink to a page within the Word 2007 Object Model Reference documentation, that ships with Word 2007. These are webpages that use the ms-help:// protocol that Firefox cannot understand. So I wanted to specify the ms-help:// path of the help page as a command line argument to the viewer, CLVIEW.EXE. C:\Program Files\Mic...

Unable to correctly retrieve Date value from Word Template VB6 Macro

I've modified a Word Template's VB6 Macros to retrieve a Date of Birth Field. Unfortunately, when the value is retrieved it has a string value prefixed by a little square block and a lot of right-padded spaces which I can't seem to trim (eg. "1/3/57 "). Can anyone here see what the problem is? Here's the code - If ActiveDocument.B...

Is there a DivMod that is *not* Limited to Words (<=65535)?

In Delphi, the declaration of the DivMod function is procedure DivMod(Dividend: Cardinal; Divisor: Word; var Result, Remainder: Word); Thus, the divisor, result, and remainder cannot be grater than 65535, a rather severe limitation. Why is this? Why couldn't the delcaration be procedure DivMod(Dividend: Cardinal; Divisor: Cardinal;...

PHP: Search-like word highlighting

I'm working on a simple search engine for a newspaper application. When the user types a keyword, a results page is shown, highlighting the term with a color. I'm currently doing this: $title = str_ireplace($term, "<span class='highlight'>$term</span>", $note->Title); Great, str_ireplace() makes the case-insensitive search, but when ...

Piloting Microsoft Word With Ole in C++ Builder : how to put Word in the foreground.

Hi! I've got a code (which works fine) for piloting word with C++ Builder. It's useful for reaching different bookmarks in the document. Variant vNom, vWDocuments, vWDocument, vMSWord, vSignets, vSignet; vNom = WideString("blabla.doc"); try { vMSWord = Variant::GetActiveObject("Word.Application"); } catch(.....

Random word from giving letter

hi everybody Is there any possible code for getting output in php(all possible word from word dictionary) for example....for word "werflo" flower fowler reflow wolfer ...

how to get a word under cursor using JavaScript.

in this case: <p> some long text </p> how can i know that mouse cursor is above the 'text' word? ...

Using an embedded Word document to create a new instance of that document.

For a variety of reasons that are immutable ... I have a Word document which contains a VBA application (the 'app document') which creates a new document based on another document (the 'template') which contains the framework for the new document. I want to embed the 'template' into the 'app document' so that I deliver one file and I kn...

Alternative for PHPlivedocx?

Hello, Is there any other free alternatives to PHPliveDocx? I would like to create a Word document based on templates and user inputted data. The template will resides on the server and the client(online or c# windows application) will be used to collect user input. Once data has been collected, server-side script(PHP) will be used...

Determine whether a Canvas has been inserted into each page in Word

Hi, Currently i have a code which will print OMR Mark on each pages. Basically i insert a Canvas into each page and subsequently an OMR Mark Line Series are inserted into the Canvas. Recently i found an issue that somehow one of the canvas is placed out of a page and it appears at the previous page instead of the current page. Below i...

Mercurial and Word or PDF documents

Hi, is it possible to use Mercurial version control to track Word or PDF files? Is there any limitation or problem? THANKS! ...

Copying Pasting Word 2007 docs to HTML WYSIWYG editors

Microsoft word has a ton of proprietary formatting and styles that do not translate well to html WYSIWYG editors. When you paste them over to the html editor and try to edit the pasted info it causes all kinds of clashing styles. I want to be able to keep the general structure but leave out the proprietary stuff. Essentially I wan...

Encoding issues with Microsoft Word characters in an AJAX request

Hi all, I'm writing a function to convert MS Word-styled text into Adobe InDesign-formatted text (it uses a kind of XML to indicate styling). The text is pasted into a TinyMCE rich text editor, which then sends the HTML-formatted code to a php function. I've tried this function to clean up the code once it reaches my conversion code: ...