Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Embedded word object

Hi,

Is it possible to access the embedded word object in an Excel file via code.
I'm using the C# and trying to access a word object in an excel file using
the following code.

Microsoft.Office.Interop.Word.Document doc = new
Microsoft.Office.Interop.Word.DocumentClass();
doc =
(Microsoft.Office.Interop.Word.Document)_excelData WS.Shapes.Item("WordDoc").OLEFormat.Object;

I get errors relating to casting when trying this so would like to know if
anyone has done this before and how they've done it?

All help is greatly appreciated.

Thanks in advance
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing an embedded Word Object bluegrassstateworker Excel Programming 0 May 4th 07 02:58 PM
Extracting text from embedded Word Object Barb Reinhardt Excel Programming 1 September 25th 06 10:49 PM
Reference to an Embedded Word Object [email protected] Excel Programming 2 April 20th 06 03:05 PM
Cannor strech embedded word object BartDesc Excel Discussion (Misc queries) 2 March 10th 06 08:15 AM
should be possible to view entire MS Word embedded object in MS E. Phillip M. Feldman Excel Discussion (Misc queries) 1 April 21st 05 01:21 PM


All times are GMT +1. The time now is 03:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"