ms-office

Word 2007 macros: is there an OnPrint event I can attach a macro to?

I'm looking to do a formatting check on word files before they get sent to the printer and it needs to be completely transparent to the user (no extra controls, just using the standard print options available through the UI). Is there an OnPrint or BeforePrint event, or something that can be used in that respect which I could attach a m...

Multiple Office Document Conversion to PDF

Hey there, I have a whole load of different types of MSOffice files that need to be converted to pdf. Also some of these need to be stitched together into one pdf if possible. Does anyone know of a non-programmatic tool to do this? ...

Remove text box of MS word document.

I have few MS word documents which contains text in text boxes. I want to remove those text boxes but keep the data as it. How can i do it ? ...

How to check if .NET programmability support is installed for Word 2007?

Does anyone know how to check if the Office Interops were installed? I know it is an advanced option when installing Office 2007. Is there a way to install the support after Office is already installed? ...

Is it possible to create an Office 2003 VSTO add-in from Visual Studio 2010?

We have existing VS 2008 VSTO add-ins for Word 2003 and Excel 2003. We are unable to upgrade the Office version at this time. We have just tried to upgrade our solution to VS 2010 and it converts and compiles fine, but when building and running the add-in we receive a message saying that the required version of Office is not installed. ...

Document Viewer C# control

I want to create simple file viewer. What control should i use to view office documents (word,excel) in my application. ...

Coldfusion and mySQL - seeking recommendations for general and off site backup strategy

CF9, Windows Server 2008 Standard, IIS7, mySQL 5.1.48 community. I have managed to get CF to take a database mySQLdump which I was going to run as a nightly cfschedule task, with a server time based lock on the application controlled in application.cfc That will get me a local copy, but whats the best strategy to encrypt the datadump....

window.clipboardData.setData and BOLD text

Is there a way I can make window.clipboardData.setData (javascript code that works in IE only) store text that is formatted? I can figure out new line breaks, but I'm after bold/underline/italic text. I'm sure there are differnt types of encodings to do this, I'm just not sure where to start looking. As the text is intended to be post...

MS Word - Work with two VBEs at once

I've just taken over maintenance of some pretty scary legacy vba at work. When I have spare time I'm essentially restructuring and rewriting it in new templates. Every now and then, I've managed to exploit a glitch of sorts and have two different instances of the VBE open at once. I don't know exactly what I did to make this happen, but ...

spell checker in an SDK

Is it possible to add a spell checker tool in an SDK, for example "MS Developer Studio 97" that office (or other word processing tools) uses? Thanks, Sun ...

PHP COM: Word FileConverters

I'm trying to use PHP COM to save docx files as html using Word. I am using a Windows installation with apache 2.2.x and PHP5. Office 2007 is installed. Using the following code to list fileconverters: $word = new COM('word.application') or die('Unable to instantiate word.'); foreach($word->FileConverters as $converter) { var_dump(...

Microsoft Word - Dynamically Pull in HTML File and Append It - Possible?

Do Word documents have any scripting capabilities for presenting dynamic information? What I want to do is have the document dynamically pull in the contents of an HTML file and append it at the end of the document every time it is opened. Anybody know if this is possible? ...

Packages/solutions to add online document editing to an on-premise web application

I'm doing research to find 3rd party packages/solutions/widgets/back-ends to allow users of a website to upload and edit office documents online in their browser, akin to Google Docs. I haven't had much luck so wanted to see if anyone has any advice or pointers. Integrating Google Docs is, sadly, not an option, as the documents have to...

Opening byte[] as a file without actually saving it as a file first

What is the best way to open a Word file that was stored as a byte[] in a database? I have to store some documents in an Access database - Word files, 2003 and up - on an application that is strictly run off of a CD. Unfortunately they have to be in the database and can't be stored loose in folders. I'm storing them as an OLE object, an...

A simple form application

Hi, I am here for a suggestion. I want to build a simple application that contains some forms (3 to 4). In each form people can input and then at the last form the result will be auto calculated based on the user input. The users of this application are normal people. Actually it would be better if the application could be built as a si...

Automate Word plug-ins

We are planning to automate the different plug-ins available in a Word document. Using C#, we need to interact with textbox, buttons and other controls available in a given plug-in. Is there any way to automate this? The solution should work with both Word 2003 & 2007. ...

How to deploy a Office 2010 add-in with Visual Studio 2010 setup & deployment?

We have an error during the installation after running our installation: Component Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64) has failed to install with the following error message: "A failure occurred attempting to install the Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)." T...

What's the best way to export DataTable to an Excel file?

As far as I know, there're 3 ways to do this: The first way is using COM Interop to create a Excel file, then iterate over all cells to read and write data. The created file appears to be valid (true .XLS file), but it seems that Excel must installed to use this way The second way is writing a file header (CSS style), and then iterate ...

Outlook 2007 BusinessCardLayoutXML Does not Change Business Card!

Hi all, I have a Contact form region which I use to create new ContactItems with a few special user properties. One change I make when the contact is created is a slight modification to the standard business card layout. I use a XMLDocument object to change the organization property on the business card to text4, the User4 property. ...

How to detect installed version of MS-Office?

Does anyone know what would be the best way to detect which version of Office is installed? Plus, if there are multiple versions of Office installed, I'd like to know what versions they are. A bonus would be if I can detect the specific version(s) of Excel that is(/are) installed. ...