msword

Word 2007 - How do I convert text with inconsistent tabbing to a table?

I have a whole bunch of tables that were formatted weird, because when a bunch of people make tables out of tabs, one cannot expect the tabbing to be consistent on all of them. For example... I have this table: 2 cols by 11 rows... but I would like a macro that didnt care about the number of columns and rows space space space **column ...

MS Word page break inserting in wrong place

I am creating a MS Word document entirely through C# in VS 2008. I am trying to insert a page break, and when the page break is inserted, instead of inserting it and adding a new page at the bottom, it is inserting a break and adding a page at the top. This results in the first page being the last page. Here is the code for inserting ...

Using "Microsoft Save as PDF" add-in programmatically without installing Word

The sample code in this article for creating a PDF from a Word doc works great if you have word installed on the machine. http://msdn.microsoft.com/en-us/library/bb412305.aspx I'm curious if it is possible to do this without having to install Word. ...

Storing UTF-8 XML using Word's CustomXMLPart or any other supported way

I am writing a Word add-in which is supposed to store some own XML data per document using Word object model and its CustomXMLPart. The problem I am now facing is the lack of IStream-like functionality for reading/writing XML to/from a CustomXMLPart. It only provides BSTR interface and I am puzzled how to handle UTF-8 XMLs with BSTRs. To...

Create bookmark into 1st column of MSWord table

Hello All, does anyone have a VBA code to create a bookmark into the first column of an MSWord table? Let's say I have a table looking like this .-----.----------------. . ref . Title . .-----.----------------. . 1 . Title 1 . .-----.----------------. . 2 . Title 2 . .-----.----------------. . foo . Title 3 ...

Word 2003 mailmerge to separate files or print to PDF

I created a mailmerge from a single page which resulted in one document with about two hundred pages. What I need is a way to create separate files for each of these. The way I see it, I have two options: Create about 200 Word documents I can print directly to PDF (Acrobat Distiller installed). with PDF printer set as default, I can t...

.NET Generate email text in Outlook from Word

I am attempting to generate the body of an email in Outlook 2007 from the text of a Word 2007 document in VB. I have access to both the Word and Outlook object libraries, and I can read from the Word document to get a string and write it to Outlook, but I need to keep the formatting from the Word document intact. The purpose will be to...

How to Programmatically Enable Trust for VBA Project?

Getting the following error when trying to open a word document with macros to fill in the form fields: HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Word\Security\AccessVBOM The user opening the word document does not have admin rights and the AccessVBOM flag is either not available or set to zero. I can set the flag for the HKCU p...

How to check whether given file is in PROPER word file format?

Hi, I am developing one application using C# for processing MSWord files. My application gets hang when I pass invalid .doc file as an input. For example, if I have one foo.pdf file and I pass it to my application after changing its extension (foo.doc). Is it possible to check whether file is valid doc file before trying to open...

Word mail-merge called from Access 2007

Hi, I am working with a french version of Access and I absolutely need characters with accents (, etc.) I am calling Word from Access to do a mail-merge. I used to output the result of a query in a RTF file and merge with a .dot file. With 2003, the whole process went OK. With 2007, the accentuated characters go wrong. I tried UTF-8 enc...

MS Word opens documents hosted on WebDav share read-only on Windows Vista and 7 but only if no other webdav connections are open

We have a WebDav server with some Word documents on it. (We are using PHP's HTTP_WebDAV_Server but get the same issue on tests with Apache mod_dav - both use digest authentication, basic auth doesn't work on Vista or later) We have a web page that opens the word documents using javascript like: Doc = new ActiveXObject("Sharepoint.OpenD...

word Application.AddIns.Add throws 'Word cannot open this document template'

Hi, I have a template document with a simple macro to insert a file into a document. When i try to load this template file using Application.Addins.Add i am getting an error saying 'Word cannot open this document template'. wordApplication.AddIns.Add( %template file path%, ref trueObj ); This works fine on some machines. Also is the...

Can you use a web service as a datasource for a mailmerge

Some clients of ours want to use data (SQL Server backend) in a web application we've developed to generate some documents (agreements, contracts, etc). They'd also prefer to have the document templates to be in a form they are familiar with and can easily generate new ones. My initial thought was to create a SQL Server Reporting Servi...

run a .exe file on updating a word document on the same computer

i dont know if this is possible, but i need to do the following. When i make changes to a word document on my pc (save it and the date changes everytime), I want a .exe file on the same computer to run. Is there any way or third party software, with which i can achieve this? ...

Word documents generation in web app using Eclipse BIRT Report Engine

Hi, Is it possible to generate word documents (*.doc) in java web application using Eclipse BIRT (Report Engine)? I want .rptdesign to be an input file in generating process. I could not find any example or tutorial. What would you recommend as an alternative solution. As far as I know Jasper Reports allow only RTF format generation. ...

Creating a custom documentation application using Word and Visual Basic .NET

Hi all, I'm fairly new to Visual Studio (specifically Visual Basic .NET) but have been programming for quite a long time. Here at my company we have an Access application that allows users to create documents based on invoices that are in Great Plains, an accounting program. Documents such as invoices, packing lists, export documentat...

MS office word component runs only if the server is logged on with the same identity

Hi I have a webservices running on a server, which converts word document into pdf using word automation. I have given a windows network user account in the identity tab on the MS Office word component using the DCOMCNFG.exe. I am getting below mentioned error Exception Message: The message filter indicated that the application is bus...

Is there a .NET library/utility that will convert a Word document to an MP3 format?

Does anyone know of any well-supported/proven methods for converting a Microsoft Word document to an MP3 or WAV format such that hearing-impaired folks could "listen" to documents that I have stored in my web-based document management system? I already have the interface built such that someone can use the telephone to get the list of d...

Multiple headers with Interop.Word

Hi, I am adding header and footer with Interop.Word and creating a Word document. I am adding an image and and text in the header and footer. When I run the application for the first time, the header and footer gets inserted. But when I run the application the next time, the header and footer keeps getting added and the whole document ge...

Run-time error 459 when using WithEvents with a class that implements another

I am developing a VBA project in Word and have encountered a problem with handling events when using a class that implements another. I define an empty class, IMyInterface: Public Sub Xyz() End Sub Public Event SomeEvent() And a class, MyClass that implements the above: Implements IMyInterface Public Event SomeEvent() Public Sub ...