word

How to create image (or other "read-only" format) from .doc

Anyone know of a way to convert a .doc with mail-merge fields into an image in C#? Basically we want to be able to display a "read-only" version of the document. This can be an image or some other read-only format if anyone can think of one. ...

How to remove particular characters from a string using XSLT?

Hi, I need to check if a particular string contains a a particular word for example to check if, SultansOfSwing contains the word Swing. Let me also mention that the value of the string in question is unknown. As in it can be any word so we do not know the length et cetera. I understand I can do this by using the contains keyword. Bu...

Word VBA Tabstop Problem

Hello, I have the following VBA code Private Sub CreateQuery_Click() Dim doc As Document Dim i As Integer Set doc = ActiveDocument i = doc.Paragraphs.Count doc.Paragraphs(i).Range.InsertParagraphAfter i = i + 1 For j = 0 To 1000 doc.Paragraphs(i).Range.InsertParagraphAfter i = i + 1 doc.Paragraphs(i)...

How do I reference a custom ribbon's button from my own custom ribbon in Word 2007?

Basically, I have my own custom ribbon in a .dotm. I also have a 3rd-party ribbon with some buttons/functionality I would like to reference from my custom ribbon. I can access the XML for this 3rd-party ribbon. So, is it possible to reference this 3rd-party XML from my custom ribbon, so that I can have one of the 3rd-party's buttons on m...

Retrieving the COM class factory for component error while generating word document

Hello, I am trying to edit a word document from VB.NET using for the most part this code: How to automate Word from Visual Basic .NET to create a new document http://support.microsoft.com/kb/316383 It works fine on my machine but when i publish to the server i get the following error. Retrieving the COM class factory for compone...

python to find longest word

how determine the longest word? First word, ok 'a aa aaa aa'[:'a aa aaa aa'.find(' ',1,10)] 'a' rfind is another subset 'a aa aaa aa'[:'a aa aaa aa'.rfind(' ',1,10)] 'a aa aaa' One row should be able. It's a direct word 'a aa aaa...' and can be a variable, no problem it occurs twice still naturally easier if also occured just once....

export word document to pdf using iTextSharp

Hello, Is it possible to convert existing word document to pdf using iTextSharp. Regards, Aniruddha ...

Word-separating algorithm

What is the algorithm - seemingly in use on domain parking pages - that takes a spaceless bunch of words (eg "thecarrotofcuriosity") and more-or-less correctly breaks it down into the constituent words (eg "the carrot of curiosity") ? ...

Spell Check window using MSWord interop opening in back of my application in Vista

I'm using MSWord interop to check grammar/spell in my application. I'm using these steps to do this: 1) Create a new Single Thread Apartment to not lock my application's form 2) Disable the input of my application 3) Using reflection (to be MSOffice version independent), I'm using this code to open Word: objWord = System.Activator.Cre...

Inserting a Table into a Word Document using OpenXML SDK

I'm trying to insert a new table into a document but have run into a frustrating problem. The insertion point is currently defined by a Bookmark and I want to be able to add the table between the BookmarkStart and BookmarkEnd elements but have found that if they reside within a Paragraph element then Word won't open the resulting docum...

Given a list of words - what would be a good algorithm for word completion in java? Tradeoffs: Speed/efficiency/memory footprint

I'm exploring the hardware/software requirements (ultimate goal is mobile Java app) for a potential free/paid application. The application will start with this simple goal: Given a list of relevant words in a database, to be able to do word completion on a single string input. In other words I already know the contents of the database ...

tinymce and importing / copy paste from microsoft word

i am struggling to get an accurate answer on this questions on whether tinymce supports pasting from microsoft word. i guess there may be a lot of out of date information on the web on this topic as i have seen answers such as: There is a plugin you can install to get it to work You have to use a seperate "paste from word" button as o...

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 ...

Download the html text collected in a string builder to word document in VB.NET Console Application

I have a requirement to move the html text available in a string builder to a word document and open the word document after the data is appended in a VB.NET console application. I am new to console applications and am not sure how this could be done, but I am aware that if I am using a Web Application then I can use the following code: ...

text wrapping to avoid text overlapping

hi i would like to know how to wrap a text in documentum so to avoid overlapping, especially if it will be displayed in a column format. thanks ...

merging document with openoffice from flex (air)

Hello, i'm searching a method to merge some data from an air application to a template made with word (.doc). I've search on the web for exemple, look at the open office API, but did'nt find anything. 1- do you think it's possible from air to make a document (pdf as possible) from a existing template in .doc ? If not, i read that livecyc...

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...

Using .NET Microsoft.Office.Interop to convert .DOC to XHTML

I'm trying to convert the contents of a Microsoft Word (.doc) file into nicely formatted XHTML using C#, .NET 2.0 and the Microsoft.Office.Interop.Word namespace. This is just a little exe that I'm building, which I can hopefully integrate into our automated build process. The reason I'm doing this is because Word's built in "Save as Web...

MS Word Viewer C# .NET automation....

Is it possible to automate the following: referencing MS Word Viewer to open a document programatically and then print it? C# ideally Im guessing if it is possible to open it then more than likely it will be possible to print it. I've tried adding a reference to COM Object in Visual Studio .. MS Office 11 / 12 Object Library but MS Wo...

Copy Merge fIelds From one word document to another in VB.net

Hi, I'm editing a vb.net app for a mate and part of the requirements are to copy merge fields from one word document to another. I can copy them across using document.content.text but they come out as text (should've figured this i guess). I think i've got them selected by: Dim tDocFields As Microsoft.Office.Interop.Word.Fields tDocF...