Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Inserting .dwg file in excel opens the drawing in autocad...


Hi All
when I try to insert .dwg file in excel using oleobjects add method it opens
the drawing in autocad and inserts blank space for the image the code which i
an using is as under..


ExcelWorksheets sheets = book.GetWorksheets();
_ExcelWorksheet s;

lpDisp3 = oExcel.GetActiveSheet();
ASSERT(lpDisp3);
s.AttachDispatch(lpDisp3);
//filename = D:\test.dwg;
OLEObjects ole = s.OLEObjects(covOptional);
ole.Add(covOptional,(COleVariant)filename,
covFalse,covFalse,covOptional,covOptional,covOptio nal,covOptional,covOptional,covOptional,covOptiona l);

Also i am using excel8.h and excel8.cpp files to get the objects of
woorksheet and workbooks

any help will be greatfull

--
mohan
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
Embed an Autocad drawing into Excel [email protected] Excel Discussion (Misc queries) 1 May 1st 07 04:10 PM
How do you import many EXCEL worksheets into AutoCAD 2005 drawing Dan Cropper Excel Worksheet Functions 1 April 16th 07 04:06 PM
Import an autocad drawing? Fred Evans New Users to Excel 1 April 24th 06 04:12 PM
inserting a VISIO drawing into a worksheet Kurt Schoenrock Excel Worksheet Functions 1 August 24th 05 11:35 PM
edit an autocad r14 object to open in autocad 2000 Derek Excel Discussion (Misc queries) 0 January 20th 05 09:51 PM


All times are GMT +1. The time now is 07:54 AM.

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"