<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Enterprise Services  Integration</title><link>http://forums.asp.net/46.aspx</link><description>Integrating Enterprise Services including Office, OWC, BizTalk, MSMQ, COM+, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: asp.net and excel</title><link>http://forums.asp.net/thread/3269139.aspx</link><pubDate>Wed, 01 Jul 2009 14:20:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3269139</guid><dc:creator>SGWellens</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3269139.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3269139</wfw:commentRss><description>&lt;p&gt;Again, you haven&amp;#39;t posted any&amp;nbsp;code or even an error message.&amp;nbsp;&amp;nbsp; The syntax you have posted will cause an error.&amp;nbsp; If you wish people to help you, you need to supply complete information.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is a &lt;strong&gt;guess&lt;/strong&gt;:&amp;nbsp; Your select syntax is incorrect, try [Sheet1$A1:A1] and you must have HDR=No in the connection string.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: asp.net and excel</title><link>http://forums.asp.net/thread/3267780.aspx</link><pubDate>Wed, 01 Jul 2009 02:39:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3267780</guid><dc:creator>viki_singh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3267780.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3267780</wfw:commentRss><description>&lt;p&gt;everything is fine, i am doing the same way. my sql query is &amp;quot;Select * From [Sheet1$A1].&lt;/p&gt;
&lt;p&gt;I want to get the cell value of A1, but it is not working.&lt;/p&gt;</description></item><item><title>Re: asp.net and excel</title><link>http://forums.asp.net/thread/3267659.aspx</link><pubDate>Wed, 01 Jul 2009 00:11:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3267659</guid><dc:creator>SGWellens</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3267659.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3267659</wfw:commentRss><description>&lt;p&gt;You haven&amp;#39;t posted any code so no one can say what you may be doing incorrectly.&lt;/p&gt;
&lt;p&gt;You can try this:&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;      // using System.Data.OleDb
        OleDbConnection ExcelConection = null;
        OleDbCommand ExcelCommand = null;
        OleDbDataReader ExcelReader = null;
        OleDbConnectionStringBuilder OleStringBuilder = null;

        try
        {
            OleStringBuilder =
                new OleDbConnectionStringBuilder(@&amp;quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties=&amp;#39;Excel 8.0;HDR=Yes;IMEX=1&amp;#39;;&amp;quot;);
            OleStringBuilder.DataSource = MapPath(@&amp;quot;~\App_Datav\MyExcelWorksheet.xls&amp;quot;);

            ExcelConection = new OleDbConnection();
            ExcelConection.ConnectionString = OleStringBuilder.ConnectionString;

            ExcelCommand = new OleDbCommand();
            ExcelCommand.Connection = ExcelConection;
            ExcelCommand.CommandText = &amp;quot;Select * From [Sheet1$]&amp;quot;;

            ExcelConection.Open();
            ExcelReader = ExcelCommand.ExecuteReader();

            GridView1.DataSource = ExcelReader;
            GridView1.DataBind();
        }
        catch (Exception Args)
        {
            LabelErrorMsg.Text = &amp;quot;Could not open Excel file: &amp;quot; + Args.Message;
        }
        finally
        {
            if (ExcelCommand != null)
                ExcelCommand.Dispose();
            if (ExcelReader != null)
                ExcelReader.Dispose();
            if (ExcelConection != null)
                ExcelConection.Dispose();
        }
  &lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>asp.net and excel</title><link>http://forums.asp.net/thread/3267624.aspx</link><pubDate>Tue, 30 Jun 2009 23:35:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3267624</guid><dc:creator>viki_singh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3267624.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3267624</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am doing a asp.net 2.0 application, and connecting excel using oledb. I want to get a single cell value from excel. i have written query like this &amp;quot;Select * from Sheet1$A1&amp;quot;.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;But i am getting error that Sheet1$A1 not found. Is there any mistake?&lt;/p&gt;&lt;p&gt;I do not want to use excel object.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>