-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Niravmoteriya1
Message 5 in Discussion




  
    
    New Message on MumbaiUserGroup
  
  





      First Sheet Name of Excel

    
  
    
      Reply

          
            
                
               
                  Reply to Sender
                    Recommend
                  
                  Message 2 in Discussion
                                                
            
          
        
                    
        
            
              From: 
              Niravmoteriya1
            
            
              

              


  
    
    New Message on MumbaiUserGroup
  
  





      First Sheet Name of Excel

    
  
    
      Reply

          
            
                
               
                  Reply to Sender
                    Recommend
                  
                  Message 1 in Discussion
                                                
            
          
        
                    
        
            
              From: 
              Niravmoteriya1
            
            
              

              Hi,

    I want to Know how to get First sheet name of Excel file without 
creating Excel object of file.
i used below code::

        strFile = OpenFileDialog1.FileName


        ' Create connection string variable. Modify the "Data Source" 
parameter as
        ' appropriate for your environment.
        Dim sConnectionString As String = 
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
                    "Data Source=" + strFile + ";extended properties = excel 
8.0"

        ' Create the connection object by using the preceding connection 
string.
        objConn.ConnectionString = sConnectionString


        ' Open connection with the database.
        objConn.Open()

        dt = objConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, New 
Object() {Nothing, Nothing, Nothing, "TABLE"})



but GetOleDbSchemaTable Returns datatable with sorted order.so i m not able 
to find which is the first sheet of excel.

is their any way to remove sorting order.


Regards,
Nirav.

_________________________________________________________________
Spice up your IM conversations. New, colorful and animated emoticons. Get 
chatting! http://server1.msn.co.in/SP05/emoticons/


          
        
      
          
  

    View other groups in this category.
  

  

      



          
        
      
          
  

    View other groups in this category.
  

  

      




-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to