473,503 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

View Excel in VB APP

3 New Member
Hi,


does anybody know which control I can use to view an Excel sheet inside my program. I just want to show the sheet as is, no editing etc


Thanks
Apr 19 '07 #1
2 1237
asimzia
9 New Member
Hi,

Include excel type library in the project references and then use the following:

Dim m_oExcelSheet As Excel.Application

Set m_oExcelSheet = New Excel.Application
m_oExcelSheet.Workbooks.Open "TestExcel.xls"

this is the simplest way to do that.

Thanks,
Asim.
Apr 19 '07 #2
SammyB
807 Recognized Expert Contributor
Hi,


does anybody know which control I can use to view an Excel sheet inside my program. I just want to show the sheet as is, no editing etc


Thanks
Which VB are you using, VBA, VB6 or VB.NET? Do you want to open the sheet in a control on your form or as if you just opened the workbook? asimzia gave you the the second way for VB6 or VBA.
Apr 19 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1322
by: anamika | last post by:
I want a report in excel from my SQL database from one table. I want to create a view and then use DTS package to export it to excel format. But how can i get the following format in a view?? They...
1
1986
by: Alex | last post by:
Hi all, In MS SQL Management Console I can right-click on any Table and I have the option All Tasks > Export Data where I can export the table to Excel. In a View however this isn't there. I...
2
5567
by: sunstarwu | last post by:
Hi, I am having difficultly being able to view certain Columns and rows via a DropDownList. Everytime I load my webpage.aspx it just shows empty drop down menus. I have no problem showing all...
1
228
by: SA | last post by:
hi all i have a grid that has some columns created dynamically and attached to a datasource. Once the grid is displayed in the screen there is a Export to excel button. On clicking this button i...
2
2173
by: PB | last post by:
I need to enable users to download data in either an Excel file or an Access database (MDB file). The data they need exists in a SQL Server database: the XLS or MDB file does not actually exist...
9
2174
by: harborboy76 | last post by:
Hi, I have a problem with one of my view. Basically, I need to create a view to sum the amount in Table A grouped by the EMPLOYEE_ID. But I also need the ability to limit the date range. What...
5
3746
by: cjl | last post by:
Hi. I am trying to screen scrape some stock data from yahoo, so I am trying to use urllib2 to retrieve the html and beautiful soup for the parsing. Maybe (most likely) I am doing something...
2
4981
by: cckelly | last post by:
Hello, all! I need help. There is a "view" in a SQL Server 7 database that contains all the data I need. I want to create an Excel file (version Excel 2000). I want the file to open the view and...
1
4971
by: =?Utf-8?B?Ym9iYnk=?= | last post by:
I have a Grid View and I want to expoet into Excel. I am using a hyperlink to export the GridView intop Excel. But when I click on link it just shows me java script. It doesn't open Excel...
1
1682
by: czi02 | last post by:
how to view the code of my database? I had a databse access and also had an excel files? HOw am I going to view the codes of the database access? I ahd a daatabse then after I done the sql. I...
0
7261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7315
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4665
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.