msword

URL to a particular section/page in a Word Document

How do I give url links to particular sections of a word document through HTML hosted on a server root folder? ...

how to create a macro in EXCEL that will print a Word Document without opeining it.

hi, i have a document mydocument.docx i want to print that from a button in excel sheet. both are in same folder. i don't want users to see word document.They just click the button in excel and printing of word file starts. this is actually very urgent. and i am totally new to this so if u can explain this in steps that would be so awe...

word mailmerge with table-of-contents

I have mailmerge macro that creates a product list, now my problem is that TOC does not seem to work, is it possible to set style (heading 2) to a chosen mergefield block? something like if mergefield="" then style = xxx ...

How does MS-Word open a hyperlink?

I have an MS-Word document with a hyperlink. The hyperlink points at an authentication redirector on my server. When I control-click on the hyperlink, my server logs report that it does a fetch with IE, then fetches the redirect url with IE, then launches the "default browser", which is Firefox in my case, and re-fetches the se...

Office SQL Query Problem

I've got a database View in SQL Server 2008 and when I run it from Query Analyser, it runs within a couple of seconds. When I run it in Excel 2007, it loads the data just fine. But when I run it in Word 2007 on a mail merge, it just seems to take a very long time to run (literally minutes to run). If anyone has an idea how to solve this...

Outlook 2003 Plugin not receiving resize events

I have an Outlook 2003 plugin that I am developing in C# using VSTO in Visual Studio 2008, and I am having some trouble with resizing when using Word 2003 as the composer. The plugin adds an extra panel to the bottom of the compose window (shrinking the main compose window slightly.) The extra panel contains a RichTextBox and a few othe...

How do I create (and display) a MS-Word document from a Silverlight application

I am trying to decide if I can cope with the fact that Silverlight does not support printing. One option is to create a ms-word document and then load it into word, so the user can print it. This also have the advantage that I could use a word document as a template for the output, so letting the user control type faces etc. How pract...

Getting wildcards to work in find and replace function in VBA macro for Microsoft Word

Hello all! Thanks in advance for your help! I have a VBA macro for Microsoft Word that I am trying to improve. The purpose of the macro is to bold and italicize all words in a document that match the search terms in the first table of the document. The problem is the search terms include wildcards which are the following: the hy...

Mailmerge macro from Excel datasource gives dialog "name or cell range"

A Word mailmerge macro from excel datasource gives dialog "name or cell range" How can I hide that dialog? ...

MailMerge seem to open Excel file twice?

With ActiveDocument.MailMerge .MainDocumentType = wdCatalog .OpenDataSource Name:=excelfile, _ Connection:="Entire spreadsheet", SubType:=8, ReadOnly:=True ''# Range = Selection.Range .Destination = wdSendToNewDocument .Execute End With ''# Activedocument DDETerminateAll Why does this code open "excelfile" twice to excel, one of these ...

Word Mail Merge for SQL

I'm having some performance issues since a DB was moved from SQL2000 to SQL2008. We need to retrieve from a SQL View for a mail merge and for an application called FORMIC. It was fine under SQL 2000, but is now very, very slow. One thing I've noticed is that SQL Profiler shows that Excel does a simple "SELECT * FROM VIEW" where Word se...

In Word, how can I alter mail merge data programmatically with VBA?

I have a Word document that is used as the source document for a mail merge. I can edit the document, but not the data being used for the merge. I need to transform some of the data in the data source (specifically, I need to take numbers (e.g. 342) and add their value in words (e.g. "three hundred forty-two (342)")). I can write a VB...

Why do I sometimes get an error in Reporting Services when I export a report containing .jpg images to MS Word

When you create a report using SQL Server Reporting Services 2008 (SP1), that uses .jpg images sometimes you get the following error when you export the report to word. Index was outside the bounds of the array. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace ...

Format Java Code into Word / RTF

I need to format java code to put into a Word document. Are there any programs that will do this with keyword highlighting, etc. ? ...

Browser Word Document Editor

I've been looking at Adobe Buzzword and Zoho Writer and the functionality their editor controls provide is something that I need to incorporate into an application I'm working on. To be clear, I'm not looking for a WYSIWYG HTML editor like FCKEditor or the Telerik R.A.D controls editor. What I'm looking for is an editor that can creat...

Creating Tables in Word Programatically

I am generating tables and writing them to word on the fly. I do not know how many tables there will be each time i write the data to word and the problem I am having is the second table is written inside the first cell of my first table. If there was a third table it is put inside the first cell of my second table. Is there a way to mo...

Excel 2007 is locked when used as a datasource for Word Mail Merge

When using Word 2007 MailMerge with an Excel 2007 (xlsx) as a datasource, the .XLSX file is locked and cannot even be copied using Windows Explorer. It is possible to connect to the Excel file as a datasource (using Visual Studio 2008 and .NET 3.5) but it is not possible to use the Office automation or similar third party components. We...

ActiveDocument.MailMerge with DDE leaves excel open

How to close excel opened by Word mail merge macro? With ActiveDocument.MailMerge .MainDocumentType = wdCatalog Connection:="Entire spreadsheet", SubType:=8, ReadOnly:=True .Destination = wdSendToNewDocument .Execute End With 'Activedocument DDETerminateAll ...

How to create a MAPI32.dll stub to be able to "send as attachment" from MS Word?

Microsoft Word has "send as attachment" functionality which creates a new message in Outlook with the document attached. I would like to replace Outlook with a custom mail agent, but I do not know how to achieve this. Now my mail agent is simply a program that runs, and takes a file name as parameter. As far as I know, "send as attac...

how to create Table-of-contents (TOC) via macro

I need to create table - of-contents after mailmerge by macro as word does not support updating TOC field from TC fields. Is it possible to automate creating TOC ? ...