msword

How to transfer text from RTF to Word Document in c#

hI I need to transfer text from richTextbox to word document and also in plain text on button_click. I need assistance on this please. I got a vb code but need in csharp. Dim wrdApp As Word.Application Private Sub Form_Load() Set wrdApp = New Word.Application End Sub Private Sub Command2_Click() Clipboard.SetText RichTextBox1...

Word SmartDoc - Node Manipulation based on Current Cursor Position

I've created a smart document xml expansion pack for word that has an action associated with #actionPertainsToEntireSchema. An image in the action pane has several "hotspots" painted and using the X,Y pos I determine what the user desires to do. I'm using CS Here's where the user invokes a command: ImageClick(int ControlID, string App...

Numbered List in Microsoft Word

I am using Interop.Microsoft.Office.Interop.Word.dll to dynamically build a Word document in C#. Does anyone have a code example to create a a numbered list? ...

One Central Header/Footer used by Multiple Docs (Word 2003 or 2007)

Inside Word (2003 or 2007), is there a way to have one Header/Footer that is used by Multiple documents? I want to be able to change the header/footer in one spot and have it affect multiple documents. i.e. I have 50 documents and they all have the same header/footer. Instead of opening all 50 documents to make the change, is there a ...

OpenXML 2 SDK - Word document - Create bulleted list programmatically

Using the OpenXML SDK, 2.0 CTP, I am trying to programmatically create a Word document. In my document I have to insert a bulleted list, an some of the elements of the list must be underlined. How can I do this? ...

Mailmerge Field not always saved the same way in Word .docx

I have created a Word document with Word 2003 and inserted some MergeField via the GUI. I have saved it as a .docx by using Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats. Some Mergefields are stored as a SimpleField, while others are stored as a FieldCode (with start-FieldChar and end-FieldChar). S...

ASP.Net: word creation/manipulation at client side

Hi, I have a asp.net web app. On click of a button on a web page,I want to create a new MS word document on the client machine and show some data fetched from the server in it. Client can make changes into that document and save it on it's machine. After that client can again upload the saved document in the server and we need to update ...

How can I use Jacob to create a graph in a MS Word document

How can I use Jacob to create a graph in a MS Word document? ...

Visual Basic Macro in Word to Resize/Center/Delete All Images

I found a VBA macro online that resizes all the images in a Word document: Sub ResizeAllImages() ''# make all images (both inline and floating) ''# 11 cm wide while preserving aspect ratio Dim oShp As Shape Dim oILShp As InlineShape For Each oShp In ActiveDocument.Shapes With oShp .Height = AspectHt(.Width, .Height, _ ...

CustomXmlParts and i4i

I wrote an application which automatically generates and updates Word documents. I store information used to update each document in a CustomXmlPart. How will this be affected by Microsoft's settlement with i4i? I have been unable to find technical details about what exactly will be disabled. Also, if it will be affected, what's the be...

How do we export a ms-word (or rtf) document (from a web browser) to generated by pl/sql?

Hello, I need to generate a ms-word document from a pl/sql query to export a set of reports through a web browser. I have been searching for a specific way to modify the content headers using owa_util.mime_header etc etc but could not really get a working proof of concept to get the web page to present the user to download/open/save a ...

Converting Word doc to tiff

I run Word 2003 in unattended process to convert a word doc file into a tiff. Word is configured to print to Microsoft Office Document Image driver and then pick up the generated file. It works fine on a 32 bit OS. Now we need to migrate this app on a 64 bit OS and it looks like there is no such driver in the Office 2003 installation on...

How to write print css to get print from web pages in almost same manner as we get from MS word ?

How to make cross size and cross browser compatible print CSS for World's most use paper sizes to get print? A4, A3, Legal etc How we can same almost similar formatting to our site page's like MS word ? What are best practices to get consistency in formatting of print page from any popular browsers? How to set cross browse...

Word document creation API in Java

I would like to create a word document using a template, replace some variables (fields) and save it as a new word document. I was thinking using Apache POI, http://poi.apache.org/ is it the best for this purpose? can you share your impression from it? ...

How to Create a word .doc file from a .doc template in php

Hi, I need to create a word document from a word template, its something like, we need to replace the few strings (say variables) in the template with the values. Please tell how we can do this in PHP ( or cakePHP). Thanks ...

Tagging images in document

Hi, I 'm trying to do add tags to images which are in embedded(added) to word/pdf documents like taggify does. I was looking for suggestions on how to start? This question is an extension of http://stackoverflow.com/questions/128305/tag-images-in-the-image-itself-how-to thxs ...

Meaningful XML from MS Word Plugin

I have a requirement to build an MS Word 2007 plugin that provides a button which when clicked uploads the Word document to a webservice as XML. So far this doesn't seem to be all that problematic but the customer has the additional requirement that they want the XML to be meaningful. They are recording formatted text but want certain a...

Copy Text from Range in Excel into Word Document

hi, how do you: 1) copy text from a range in an Excel Document. 2) Open a Word Document. 3) inserts the text into a specific part of the word document. regards Kojo Edit: here is the approach Dim wrdApp As Word.Application Dim wrdDoc As Word.Document Dim j As Integer Set wrdApp = CreateObject("Word.Application") wrdApp.Visi...

How to extract shape coordinates in Word VBA

I'm trying to write a VBA macro in Word that will extract shapes and build them in Visio. I'm having some trouble getting the X Y coordinates of the shape in the document. I have tried using the Top and Left properties of the shape objects. The Left property seems to work fine, but the Top doesn't seem to work properly. A shape near th...

Launching MS Word from Internet Explorer with parameters

I have a requirement for within an ASP.Net application to open a Word template from within the browser and pass in some parameters to a MS Word plugin that will be installed on the client. Is it possible when opening Word from the browser to pass in any parameters and if so how do you go about this? ...