943,946 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 4735
  • VB.NET RSS
Jun 28th, 2006
0

How to display Excel file in a tabPage?

Expand Post »
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:

VB.NET Syntax (Toggle Plain Text)
  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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MikeLI is offline Offline
2 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: creating menus programatically
Next Thread in VB.NET Forum Timeline: move previouse record in VB.net





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC