Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Embed an Autocad drawing into Excel | Excel Discussion (Misc queries) | |||
How do you import many EXCEL worksheets into AutoCAD 2005 drawing | Excel Worksheet Functions | |||
Import an autocad drawing? | New Users to Excel | |||
inserting a VISIO drawing into a worksheet | Excel Worksheet Functions | |||
edit an autocad r14 | Excel Discussion (Misc queries) |