473,378 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to import an Office window?

How to import an Office window?

Hello.
I want create a MS.Office.Excel or IE window on my C# form and edit some
Excel files.
How can I do that?
Need I buy some licences from Microsoft?

Thanks
CYShao:-)
Nov 15 '05 #1
1 1519
CYShao,

Well, you will have to have a license to run the program, so that is the
first thing that you would need.

Once you purchased the appropriate software, you will have to create an
active document host in .NET. There used to be a control in VB6 which
allowed you to host OLE documents (like word, excel, etc, etc), but there is
no such counterpart in .NET.

So, you will have to create your own Active Document Container in .NET.
You can do this with Managed Extensions for C++. It is documented in
knowledge base article 316587, titled "HOW TO: Automate Embedded Office
ActiveX Documents with C++ .NET", located at (watch for line wrap):

http://support.microsoft.com/?kbid=316587

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"CYShao" <cy****@jfsys.com> wrote in message
news:uC**************@tk2msftngp13.phx.gbl...
How to import an Office window?

Hello.
I want create a MS.Office.Excel or IE window on my C# form and edit some
Excel files.
How can I do that?
Need I buy some licences from Microsoft?

Thanks
CYShao:-)

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David | last post by:
Hi, We a have a small office network of 3 users. Each user has their own copy of an MS Access Front-End which is linked via their own local ODBC connection to our server's MySQL database (Linux...
1
by: Mary Ann | last post by:
Access 2002. I am trying to import a fixed width text file. When I get to the field options window, the "Field Name:" control says Field1 and Field1 is highlighted in the bottom of the window. ...
3
by: Mark | last post by:
Hi All, Firstly, I am aware from reading previous posts that if someone is determined enough, they will crack an Access Application. However, this problem seems basic but I can't find a...
0
by: CYShao | last post by:
How to import an Office window? Hello. I want create a MS.Office.Excel or IE window on my C# form and edit some Excel files. How can I do that? Need I buy some licences from Microsoft? ...
0
by: autoEx | last post by:
I am using #import directive to import the excel library to make excel files but the excel object is not recognized by my application. Here is what I do: I have simple dialog based MFC application in...
1
by: Child of His | last post by:
I have been through every trick I know, or has been suggested. I have a one to two million line fixed field database in text format. I want to bring it into Access 97. When I use the external...
1
by: Wandering | last post by:
I know you guys are heavy duty coders, while I do ad-hoc analysis, and rarely write code. And, I may be in the wrong groups because this is about an install issue, and I don't think it's a code...
1
by: =?Utf-8?B?UGF0?= | last post by:
In Windows Mail, in the import process, I get to a window that wants me to Browse for the CSV files.... I don't know how to find the Outlook files - are they already in CSV format? HELP!! I can...
2
DAF LAD
by: DAF LAD | last post by:
Hi. I have been running an access Database in Office 2003 for a while now. When I upgraded to Office 2007 one of my macro buttons has stopped working. The Button looks up to VBA code to Import...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.