<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Read Embedded Excel sheet in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781792#M51206</link>
    <description>&lt;P&gt;I believe that allows you to update the link, not gain access to the OleClientItem itself. But maybe that's all that's needed here?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2013 15:24:48 GMT</pubDate>
    <dc:creator>fenton_webb</dc:creator>
    <dc:date>2013-02-15T15:24:48Z</dc:date>
    <item>
      <title>Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3773610#M51198</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a drawing with an &lt;STRONG&gt;embedded&lt;/STRONG&gt; Excel sheet. I want to read the contents of the excel sheet. How can this be done? Maybe in combination with&amp;nbsp;&lt;STRONG&gt;Microsoft.Office.Interop.Excel&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ty.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2013 19:11:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3773610#M51198</guid>
      <dc:creator>Ertqwa</dc:creator>
      <dc:date>2013-02-08T19:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3777883#M51199</link>
      <description>&lt;P&gt;Does this help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/04/update-linked-ole-object-from-net.html" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2012/04/update-linked-ole-object-from-net.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 01:22:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3777883#M51199</guid>
      <dc:creator>fenton_webb</dc:creator>
      <dc:date>2013-02-12T01:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3777942#M51200</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already saw some articles about &lt;STRONG&gt;linked&lt;/STRONG&gt; OLE objects, but not about &lt;STRONG&gt;embedded&lt;/STRONG&gt; OLE objects. But maybe it will help me, I'll look it at.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 04:50:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3777942#M51200</guid>
      <dc:creator>Ertqwa</dc:creator>
      <dc:date>2013-02-12T04:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3778461#M51201</link>
      <description>&lt;P&gt;How do you embed an Excel spreadsheet into a DWG?&lt;/P&gt;&lt;P&gt;Linking means the .xls(x) is somewhere else but we hold a reference to the spreadsheet.&lt;/P&gt;&lt;P&gt;Embedding would mean the Excel object, the spreadsheet and its&amp;nbsp;information is actually inside the DWG. I Haven't tinkered with that possibility yet, how did you manage to achieve it?&lt;/P&gt;&lt;P&gt;Besides from that.&lt;/P&gt;&lt;P&gt;Whether you have the Excel file inside the DWG or just a link to it, just open the Excel object like you would any Excel file, either early or latebound.&lt;/P&gt;&lt;P&gt;Some say "Write in early bound, compile, debug and then translate into late bound", for performance and compability reasons of course.&lt;/P&gt;&lt;P&gt;If you're looking into writing something quick, just do early bound and don't waste time translating.&lt;/P&gt;&lt;P&gt;If you have the time, early bound and then late bound. Creating a custom class can do wonders.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 16:29:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3778461#M51201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-12T16:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3779895#M51202</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I open Excel, add data, copy the cells, and paste it in Autocad. I close Excel without saving it.&lt;/P&gt;&lt;P&gt;I right-click the Excel table in AutoCAD and pick OLE-&amp;gt;OPEN to open it again in Exel to edit it.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;Since I dont save the Excel file, I assume it is saved in the dwg.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;Ty for your reply.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2013 19:55:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3779895#M51202</guid>
      <dc:creator>Ertqwa</dc:creator>
      <dc:date>2013-02-13T19:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3780196#M51203</link>
      <description>&lt;P&gt;For the life of meeeee!&lt;BR /&gt;God damned OLE objects!&lt;BR /&gt;&lt;BR /&gt;I'm stuck here:&lt;/P&gt;&lt;PRE&gt;[CommandMethod("test1")]
public void test1()
{
  Database newD = Application.DocumentManager.MdiActiveDocument.Database;
  Editor newE = Application.DocumentManager.MdiActiveDocument.Editor;
  PromptEntityResult per = newE.GetEntity("Pick a OLE object: ");
  Object id = per.ObjectId;

  using (Transaction newT = newD.TransactionManager.StartTransaction())
  {
    Ole2Frame myOle = newT.GetObject(per.ObjectId, OpenMode.ForRead) as Ole2Frame;
    object excel = myOle.OleObject;
  }
}&lt;/PRE&gt;&lt;P&gt;I don't know what to do with that object or how to find how what to do with it.&lt;BR /&gt;I've tried everything I could think of (which wasn't much). Online search would not help.&lt;/P&gt;&lt;P&gt;It's an interesting topic, I guess I would need to read about OLE objects.&lt;BR /&gt;&lt;BR /&gt;These guys were on to something, or solved it, I dont even know now:&lt;BR /&gt;&lt;A target="_blank" href="http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/How-do-I-programmatically-access-an-embedded-Excel-document-from/td-p/3379409"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/How-do-I-programmatically-access-an-embedded-Excel-document-from/td-p/3379409&lt;/A&gt;&lt;BR /&gt;but it's for Inventor, I dont know if the AutoCAD API has a&amp;nbsp;ReferencedOLEFileDescriptor type.&lt;BR /&gt;Keep me updated.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 00:52:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3780196#M51203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-14T00:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781306#M51204</link>
      <description>&lt;P&gt;OleObject returns an unmanaged &lt;SPAN class="Element146"&gt;COleClientItem&lt;/SPAN&gt; object. I don't believe that is exposed by via our .NET API so you are totally on your own there. Your best (perhaps only) option is to use C++&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 23:13:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781306#M51204</guid>
      <dc:creator>fenton_webb</dc:creator>
      <dc:date>2013-02-14T23:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781498#M51205</link>
      <description>&lt;P&gt;Looks like it is possible in .NET but with P/Invoke:&lt;/P&gt;
&lt;H3 class="entry-header"&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/04/update-linked-ole-object-from-net.html" target="_self"&gt;Update linked OLE object from .NET&lt;/A&gt;&lt;/H3&gt;</description>
      <pubDate>Fri, 15 Feb 2013 09:26:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781498#M51205</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-02-15T09:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781792#M51206</link>
      <description>&lt;P&gt;I believe that allows you to update the link, not gain access to the OleClientItem itself. But maybe that's all that's needed here?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 15:24:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781792#M51206</guid>
      <dc:creator>fenton_webb</dc:creator>
      <dc:date>2013-02-15T15:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781816#M51207</link>
      <description>&lt;P&gt;Hi, Fenton!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hps"&gt;I do not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;think this is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;all that is necessary&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to the author.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;But&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I point out&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a direction that&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;may&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;lead him to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the solution of its&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;problems.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hps"&gt;Description of COleClientItem class: &lt;A href="http://msdn.microsoft.com/en-us/library/et2y5cd7%28v=vs.100%29.aspx" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/et2y5cd7%28v=vs.100%29.aspx&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hps"&gt;IMHO it is possible call P/Invoke any methods of &lt;SPAN&gt;&lt;SPAN class="hps"&gt;COleClientItem for any purpose. For example, to run&lt;/SPAN&gt;&lt;/SPAN&gt; associated application (Word/Excel/etc.) hi can P/Invoke method &lt;SPAN&gt;&lt;SPAN class="hps"&gt;COleClientItem&lt;/SPAN&gt;&lt;/SPAN&gt;::Run&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 15:43:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781816#M51207</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-02-15T15:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781876#M51208</link>
      <description>&lt;P&gt;Hey Alexander&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree with you... Although, I think the work involed to PInvoke this is more than the work to simply create a C++ application to deal with it.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 16:25:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781876#M51208</guid>
      <dc:creator>fenton_webb</dc:creator>
      <dc:date>2013-02-15T16:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781927#M51209</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/400685"&gt;@fenton_webb&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hey Alexander&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree with you... Although, I think the work involed to PInvoke this is more than the work to simply create a C++ application to deal with it.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hps"&gt;I totally&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;agree with you.&lt;/SPAN&gt; But &lt;SPAN class="hps"&gt;I do not know&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;whether the author&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;knows how&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to create program in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;C++.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#C0C0C0"&gt;&lt;SPAN&gt;[offtopic]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#C0C0C0"&gt;&lt;SPAN&gt;I &lt;SPAN class="hps"&gt;often meet&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;people who know&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;C#,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;can not even&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;understand the code&lt;/SPAN&gt; in &lt;SPAN class="hps"&gt;C++.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;It's very sad&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;when you consider that&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;these&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;languages are&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;similar in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;syntax.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#C0C0C0"&gt;&lt;SPAN&gt;&lt;SPAN class="hps"&gt;&lt;SPAN&gt;[/offtopic]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 17:02:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781927#M51209</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-02-15T17:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781932#M51210</link>
      <description>&lt;P&gt;If&amp;nbsp;someone is&amp;nbsp;going to PInvoke COleClientItem then he sure is going to need to know C++!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 17:08:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781932#M51210</guid>
      <dc:creator>fenton_webb</dc:creator>
      <dc:date>2013-02-15T17:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781968#M51211</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/400685"&gt;@fenton_webb&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;If&amp;nbsp;someone is&amp;nbsp;going to PInvoke COleClientItem then he sure is going to need to know C++!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#C0C0C0"&gt;Oh! &lt;SPAN&gt;&lt;SPAN class="hps"&gt;I think that&lt;/SPAN&gt;&lt;SPAN&gt;'s where you're&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;wrong.&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;There are volunteers&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to help&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;write&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the function signature&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;for&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;P/Invoke &lt;SPAN class="short_text"&gt;&lt;SPAN class="hps"&gt;(and I am&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;one of them)&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 17:53:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3781968#M51211</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-02-15T17:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3782769#M51212</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got it working. Thought I post it here, if anyone is looking for something similar:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[CommandMethod("TestExcel")]
public void TestExcel()
{
    // using Excel = Microsoft.Office.Interop.Excel;
    Excel.Workbook objWorkBook = null;
    Excel.Worksheet objWorksheet = null;
    Excel.Range objRange = null;
    Document objDocument = null;
    Database objDatabase = null;
    Editor objEditor = null;
    Transaction objTransaction = null;
    PromptEntityResult objPromptEntityResult = null;
    Object oidExcel;
    Ole2Frame objOle2Frame;
    string strCell;
    int intRow = 0;
    int intColumn = 0;

    try
    {
        // Get active document, database and editor.
        objDocument = CADS.Application.DocumentManager.MdiActiveDocument;
        objDatabase = objDocument.Database;
        objEditor = objDocument.Editor;
        // Ask user to select the excel tabel.
        objPromptEntityResult = objEditor.GetEntity("\nSelect the excel table: ");
        if (objPromptEntityResult.Status != PromptStatus.OK)
        { return; }
        // Get id of selected object.
        oidExcel = objPromptEntityResult.ObjectId;
        // Start transaction.
        using (objTransaction = objDatabase.TransactionManager.StartTransaction())
        {
            // Get Ole2Frame object.
            objOle2Frame = objTransaction.GetObject(objPromptEntityResult.ObjectId, OpenMode.ForRead) as Ole2Frame;
            // The Ole2Frame will be an object of type Microsoft.Office.Interop.Excel.Workbook.
            objWorkBook = objOle2Frame.OleObject as Excel.Workbook;
            // Get the first sheet (it is assumed the table has one).
            objWorksheet = (Excel.Worksheet)objWorkBook.Worksheets.get_Item(1);
            // Get the range of cells in the sheet.
            objRange = objWorksheet.UsedRange;
            // Loop the range and write contents to the editor.
            for (intRow = 1; intRow &amp;lt;= objRange.Rows.Count; intRow++)
            {
                for (intColumn = 1; intColumn &amp;lt;= objRange.Columns.Count; intColumn++)
                {
                    try
                    {
                        strCell = Convert.ToString((objRange.Cells[intRow, intColumn] as Excel.Range).Value2);
                        objDocument.Editor.WriteMessage("\n{0}.", strCell);
                    }
                    catch
                    {
                        objDocument.Editor.WriteMessage("\nCould not convert cell {0},{1} to a string.", intRow.ToString(), intColumn.ToString());
                    }
                }
            }
        }
    }
    catch (System.Exception Ex)
    {
        CADS.Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage("Error retreiving data from embedded excel file: " + Ex.ToString());
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you VERY much, all who responded to my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2013 18:34:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/3782769#M51212</guid>
      <dc:creator>Ertqwa</dc:creator>
      <dc:date>2013-02-17T18:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Read Embedded Excel sheet</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/13124268#M51213</link>
      <description>Hi, can you share the complete solution? Including all the necessary using directives and required libraries?</description>
      <pubDate>Fri, 01 Nov 2024 12:42:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-embedded-excel-sheet/m-p/13124268#M51213</guid>
      <dc:creator>c_rampe</dc:creator>
      <dc:date>2024-11-01T12:42:40Z</dc:date>
    </item>
  </channel>
</rss>

