How to display Excel file in a tabPage?

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2006
Posts: 2
Reputation: MikeLI is an unknown quantity at this point 
Solved Threads: 0
MikeLI MikeLI is offline Offline
Newbie Poster

How to display Excel file in a tabPage?

 
0
  #1
Jun 28th, 2006
Hi All,

My VB.NET program uses tabControl, which consists 8 tabPages, as the user interface. Basically, everything is done there, except when Excel file is opened.

My program reads Excel file by the following function:

VB:

  1.  
  2. Private Sub btnReadFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReadFile.Click
  3. excelApp = New Excel.Application
  4. excelApp.Visible = True
  5. excelApp.UserControl = True
  6. excelApp.DisplayAlerts = False
  7. xls = excelApp.Workbooks.Open(txtInFile.Text)
  8. init()
  9. EndSub

When the Excel file is read, it is not attached in the VB program, but shown up independently.
How can I show it in one of the tabPages?

Mike
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC