msword

Unreadable Characters in Word After Export

I have an asp.net page that exports some data to Microsoft Word 2003. The source of the data is what users have typed into an ajax control toolkit HtmlEditor on an input page. All works well unless the user has pasted text from a Word document into the HtmlEditor. The html that is copied from Word looks like this: <p class="MsoBody...

relative link failure in ie8

Private Sub RenameHyperLinks(d As Document) ' ' RenameHyperLinks Macro ' ' Dim oFld As Field Dim oldString As String Dim newString As String Dim dp As Object Dim link As Hyperlink Set dp = d.BuiltInDocumentProperties 'Set Base Hyperlink for document to relative path dp("Hyperlink base") = "..\" For ...

How to save a document in ms word 2003 using command prompt?

Please help, How to save a document in ms word 2003 using command prompt? The only thing I know about cmd is making a directory(mkdir), open ms word(win word), and hide rar files to jpeg files. And moving files from 1 directory to another. ...

Add an Image to Word Document and Scale it using VBA

hi, how do i programatically add an image using VBA to a word document. I've tried adding a bookmark to the word document and tried adding the image, but it always adds to the top of the form rather than the bookmark area. Should i persevere with the bookmark or is there another way to add the image? See my code below: Dim wrdApp As...

Problem With Setting Word Properties in C#?

I wrote simple code to open a Word file (.docx) and set properties for that file. This code do exactly itself job. But when C# opens Microsoft Word I should update all fields to see real values which are updated from my code! I want to know, what I do in my code to when Microsoft Word is open, all properties have real values and no more...

Silent update of document using interop.word without changing view mode

I am using C# and Microsoft.Office.Interop.Word to perform the following Open a document Update the contents of the document Save and close the document This works fine if the document is opened using this method where FileName is the filename, AddToRecentFiles is false and all else is Missing.Value Document Open( [In] ref object F...

Copy and paste problems with Word 2010 and Windows 7

I have a program which is able to exchange data with MS Office applications, via the clipboard. This works fine in Office 2007 and Windows Vista/XP, but fails with Office 2010/Windows 7 IDataObject *d = NULL; HRESULT hr = ::OleGetClipboard(&d); if (hr == S_OK) { FORMATETC formatEtc; formatEtc.cfFormat =...

Display HTML page in Office 2003 or 2007 task pane via VBA

Is it possible to display an HTML page in an Office 2003 and/or 2007 task pane via VBA? Background: We have a complicated configuration file that our users maintain in Word (using a real editor is not an option for our audience). We would like to create several toolbar buttons that display a basic HTML page in a task pane as a form of ...

Export From HTML To MS Word

How I can save HTML as Microsoft Word Document in ASP.NET with VB.NET? Do I need a special library to perform the conversion? ...

autoincrement one field in table using with microst word document

in word document in one table in that one column is i want to be a auto-incremented numbering and after that present doc closed and new document will be open with auto inmcremented col ...

Removing Word table border using C#

Hi all, I wanted to perform specific table formatting by removing left, right, inside horizontal and inside vertical borders. I have recorded a macro for this and got the following VBA code. I tried to make the same using C# , but I could not find there properties like wdBorderLeft , wdBorderRight, wdBorderHorizontal or wdBorderVertica...

Microsoft Word 2007 VSTO, Create table outside word?

I am using VSTO to fill data into a table in a Microsoft Word 2007 template. The amount of data varies and filling many pages (+50) takes a lot of time. The code I use to create a table: Word.Table table = doc.Tables.Add(tablePosition, numberOfRows, 8, ...

How to view the source rtf of a Word document?

I need to create a .doc document in C# with specific rtf format. I have a document that I need to replicate in my code but I don't know how to view this documents rtf representation? I don't think copying the content to RichTextBox will help cause I need margin settings and other document, not content, related settings to replicate. Any ...

VBA - Popup message when user try to print

Hi guys I am needing to set-up a function in MS Word to run a message box when a user tries to print a particular file. Cheers Anthony Update - I haven't done any VBA before and am trying to help out someone who need this. What they need is a message box with some text to display when the user goes to print this particular document...

VB Script Documents.Open throwing 424 error

So I have a vbs script: Function test2open( sSourceFile, sPDFFile ) Dim wApp ' As Word.Application Dim wDoc ' As Word.Document logStream.writeline "inside test2open" on error resume next Set wApp = CreateObject("Word.Application") logStream.writeline Err.Number Err.Clear Set wDoc = wApp.Documents.Open("c:\Windows\Temp...

Hyperlink to specific page in MS Word document

Is it possible to link to a specific page in an MS Word document via a hyperlink in a webpage? The best information I have been able to find is this article from Microsoft Support, but it only outlines how to link to a bookmark within a MS Word document rather than a page. I am hoping that there is a method similar to linking to a page...

drupal: how to generate doc files in drupal is there any possibility to that

how to generate doc file in drupal files.. do we have module for that... as pdf generation module... ...

Upload Word Documents to a Wiki page including uploading of images.

I am looking for a tool that can analyse a word document and upload the document with its formatting and images intact to a wiki page. We have an internal wiki software which supports html and my primary idea was to do just a save as and upload to wiki but I have too many images that needs to be uploaded and I don't want those fancy attr...

Practical limits of Word/VBA apps

The company I work for has an internally developed Word2003/VBA application that's already about 6.5 mb in size and they're looking to add an additional 200+ macros to it, which, I'm assuming, will make it much larger. This seems to me to be a terrible idea, but finding resources to redevelop the tool with VSTO or some other more useful ...

Include HTML files in MS Word

Hi, is it possible to include normal HTML files in Word, so that they are shown in correct style etc. and not as normal text files? ...