msword

Export Gridview to MS Word and add page number

Hi There, I would like to Export a Gridview to Word and add Page number to Exported file. I am using asp.net C# Thanks in advance ...

Indexing Word Documents and PDFs with Sphinx

I have a website where users upload documents in .doc and .pdf format. I am using Sphinx to conduct full text searches on my SQL database (MySQL). What is the best way to index these file formats with Sphinx? ...

must capture document properties for word, excel and powerpoint documents

Hi, I am new to VBA and this area. I would like to capture the document proporties like (document title, subject, author, team, manager,company etc...) while create or saving the document. This properties capture is must and i would like to implement to all the Word, Excel, Powerpoint users in my company. How this can be possible...

Create Intellisense inside a Word Add-in

I have an add-in in MSWord. One of the ways in which users interact with it requires a user to type into a Word document "commands" and also their own user-defined "data elements". I would like to provide the user with some Intellisense to help them type these commands and data elements. Has anyone done anything like that (I guess it ...

csharp code to remove all extraneous microsoft html formatting

is there any way to programatically remove all microsoft html formatting that gets put on and simply render it as regular html. i want to remove all the extra tags as i am trying to load it into tinymce but tinymce doesn't seem to be able to render it. ...

Setting correct printer in MS Word through automation

I have the following automation code: lPrintSetup := fWordObject.Application.Dialogs.Item(wdDialogFilePrintSetup); lPrintSetup.Printer := 'MyPrinter'; lPrintSetup.DoNotSetAsSysDefault := True; lPrintSetup.Execute; lPrintSetup := Null; The Printer property is giving me some problems, sometimes Execute crashes with an EOleException (0x8...

Saving an OpenXML Document (Word) generated from a template

I have a bit of code that will open a Word 2007 (docx) document and update the appropriate CustomXmlPart (thus updating the Content Controls in the document itself as they are mapped to the CustomXmlPart) but can't work out how to save this as a new file.! Surely it can't be that hard! My current thinking is that I need to open the temp...

ASP.NET Serving Word Documents

I have an application that has a subfolder called "Docs" (actually a virtual directory) where I keep all of my word documents. I don't want these documents to be accessed by any unauthenticated users but for some reason regardless of what I put in my root web.config or my "Docs" web.config IIS still serves the word up to any user. ...

Save Webpage as Word Document? (VB.NET)

I'm trying to create a Word document in vb.net. I can't use the COM Word.Application method due to permission issues on the server. So i've recreated the WORD document in HTML and tried to change the content-type and just output the HTML It works 'ok'. It outputs the HTML and opens up word with a read-only file with the content in there...

VSTO Menu for Outlook and Word

Hi, I created an add in for MS Word 2003 in VSTO. I added a new menu and also an intercept before a document is saved. When I checked in MS Outlook, the menu is add in there and it also intercept the saved function. How do I prevent my Word add in from included into Outlook? ...

Hide or Disable the MS Word Pop up menu While Right Click on the Active Document of the Dso Framer Control With Vb 6.0.

I am using the Microsoft DSO Framer Control to view the word document in the Visual Basic Form. After Hosting(Open) the Word Document in the DSO Framer Control. While Right Click on the Word Document, Ms word Context Menu is Appearing. I Want to Hide this Pop up Menu. Can any One Help me out in this Problem. I am Waiting for the Sol...

Is it possible to insert a PDF into a Word mail merge using C#.

I need to print one or more PDF brochures with each letter in a Word mail merge (based on the value of a field in the source query from SQL Server). Is this possible? Or is there another way of achieving this? ...

Word Mail merge crashing with many records

I have a VFP form where the user can print the invoices for a batch of client. Each invoice can be preceded by a cover letter written in Word by the user. The printout is done on a multiple bins printer. Here's the logic: - Create the cursor for the cover letters - Create the cursor for the invoices - Create the mail merge in Word: ...

Word document auto save to server without using MACRO !

HI , I have a web application in which i upload my word dicument whcih has a MACRO in it. On download of this document and open i want the MACRO to be enabled becasue mostly users dont have the MACRO's enabled. Is it possible for me to enable a macro while the document is opened ! Or is there any way of implementing the auto save on clo...

Did anybody really ever read a .doc file with POI and created an iText Document with it ?

Hi all, I've seen people speaking about that on the web, I've been advised to do that, but it looks like the iText rendering engine is far from matching MS word (openoffice, TeX). And interpreting a .doc is far from trivial anyway (J.Spolsky explained why) so I'm a little bit of skeptical. I'd really like to do that for a project, but ...

How programatically access a checkbox in .doc document in OpenOffice?

I have a strange question: in OpenOffice when opening a .doc file with checkboxes in it, I get a grey (meaning field) flat checkbox. It is different than the checkbox I can insert with the form components. I access this document with my program with the OOo UNO system, the problem is that this field doesn't appear in getTextFields so I ...

Programatically adding a Ribbon to Microsoft Word 2007

I have a project that adds functionality to Microsoft Word using an XML Expansion Pack. Currently, when the document we give the customer is opened, it loads our pack, which executes the SmartDocInitialize method which adds things to the main menu and toolbar using Microsoft.Office.Core.CommandBar.Controls.Add and the like. Without mod...

Automatically add picture to uploaded document and then print it.

How do add a small banner at the top of a uploaded word doc and then print it. The word doc needs to be resized to 90% for the banner to not cover the content. Convert it to pdf? Or script? Any ideas? This is for ad-financed printing of worddoc thru a local printer. ...

Why is word as a background process via outlook addin stealing focus?

I'm deploying an Outlook 2007 add-in being created in Visual Studio 2008 using C#. I've created a function to extract text from a word document. The problem is that about 20% of the time, this will temporarily grab focus and give it to my addin. I sat and watched sysinternal's process explorer for about 10 minutes while my add-in wa...

Word macro to extract lists

Hello, I've been following this forum for a while. Some of the answers were great. First time I am posting a question here. I am trying to extract lists (bulleted, numbered) from word document. I looked around, I got upto getting the paragraphs from Word using a macro. How do I get to the lists? Also, I want to extract them out as t...