hello,
i've got a very simple requirment,
i want to load excel into a WindowsForm (just like Iexplore.exe can load
excel)
I'm guessing that this is gonna be done with Ole automation somehow?
anyone got any ideas?
.... things to note
I don't want to use a datagrid, i really need excel
I don't want to use the excel web component
I don't want to create the ExcellApplication and set it's parent to my forms
and it's location in my form (this cause activation problems)
basically I really want excel application running and in my form..
this one had me beat that the moment....
thanks for any help offered 8 5237
Brian,
You aren't going to be able to do this without a LOT of work.
Basically, you will have to implement all of the interfaces to make your
windows form an Active Document Container (and there are a good number of
them). Microsoft was going to release a .NET control which was going to do
this in .NET 2.0, but it was scrapped, I believe.
There was a control in VB6 which you could use to host OLE documents,
you might want to try importing that into your project and using that.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Brian Keating" <Br**********@discussions.microsoft.com> wrote in message
news:23**********************************@microsof t.com... hello, i've got a very simple requirment, i want to load excel into a WindowsForm (just like Iexplore.exe can load excel)
I'm guessing that this is gonna be done with Ole automation somehow? anyone got any ideas?
... things to note I don't want to use a datagrid, i really need excel I don't want to use the excel web component I don't want to create the ExcellApplication and set it's parent to my forms and it's location in my form (this cause activation problems) basically I really want excel application running and in my form..
this one had me beat that the moment....
thanks for any help offered
"Brian Keating" wrote: hello, i've got a very simple requirment, i want to load excel into a WindowsForm (just like Iexplore.exe can load excel)
I'm guessing that this is gonna be done with Ole automation somehow? anyone got any ideas?
As Nicholas has said there's no easy way to do it. The closest you can get
without alot of work is to use a webcontrol and open the document in it.
Unfortunately, as you appear to've noticed there's no way to merge menus with
it. I've googled without success for 3rd party control/example program that
did the same thing you want without success. Unfortunately it doesn't appear
that one exists. If you do have any more success than I did please drop me
an email.
Thanks Nicholas,
helps alot, i may try this vb6 control and see how i get on. thanks again
brian
"Nicholas Paldino [.NET/C# MVP]" wrote: Brian,
You aren't going to be able to do this without a LOT of work. Basically, you will have to implement all of the interfaces to make your windows form an Active Document Container (and there are a good number of them). Microsoft was going to release a .NET control which was going to do this in .NET 2.0, but it was scrapped, I believe.
There was a control in VB6 which you could use to host OLE documents, you might want to try importing that into your project and using that.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Brian Keating" <Br**********@discussions.microsoft.com> wrote in message news:23**********************************@microsof t.com... hello, i've got a very simple requirment, i want to load excel into a WindowsForm (just like Iexplore.exe can load excel)
I'm guessing that this is gonna be done with Ole automation somehow? anyone got any ideas?
... things to note I don't want to use a datagrid, i really need excel I don't want to use the excel web component I don't want to create the ExcellApplication and set it's parent to my forms and it's location in my form (this cause activation problems) basically I really want excel application running and in my form..
this one had me beat that the moment....
thanks for any help offered
Thanks dan,
i'll let you know how i get on.
"Dan Neely" wrote:
"Brian Keating" wrote:
hello, i've got a very simple requirment, i want to load excel into a WindowsForm (just like Iexplore.exe can load excel)
I'm guessing that this is gonna be done with Ole automation somehow? anyone got any ideas?
As Nicholas has said there's no easy way to do it. The closest you can get without alot of work is to use a webcontrol and open the document in it. Unfortunately, as you appear to've noticed there's no way to merge menus with it. I've googled without success for 3rd party control/example program that did the same thing you want without success. Unfortunately it doesn't appear that one exists. If you do have any more success than I did please drop me an email.
thanks for pointing me in right direction
i'm going creating my own container. (cut and past mostly) http://support.microsoft.com/default...b;en-us;311765
thanks ever so much
"Nicholas Paldino [.NET/C# MVP]" wrote: Brian,
You aren't going to be able to do this without a LOT of work. Basically, you will have to implement all of the interfaces to make your windows form an Active Document Container (and there are a good number of them). Microsoft was going to release a .NET control which was going to do this in .NET 2.0, but it was scrapped, I believe.
There was a control in VB6 which you could use to host OLE documents, you might want to try importing that into your project and using that.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Brian Keating" <Br**********@discussions.microsoft.com> wrote in message news:23**********************************@microsof t.com... hello, i've got a very simple requirment, i want to load excel into a WindowsForm (just like Iexplore.exe can load excel)
I'm guessing that this is gonna be done with Ole automation somehow? anyone got any ideas?
... things to note I don't want to use a datagrid, i really need excel I don't want to use the excel web component I don't want to create the ExcellApplication and set it's parent to my forms and it's location in my form (this cause activation problems) basically I really want excel application running and in my form..
this one had me beat that the moment....
thanks for any help offered
Hi Dan,
There is light at end of tunnel! http://support.microsoft.com/default...b;en-us;311765
I'm going to implement my own so thanks again
"Dan Neely" wrote:
"Brian Keating" wrote:
hello, i've got a very simple requirment, i want to load excel into a WindowsForm (just like Iexplore.exe can load excel)
I'm guessing that this is gonna be done with Ole automation somehow? anyone got any ideas?
As Nicholas has said there's no easy way to do it. The closest you can get without alot of work is to use a webcontrol and open the document in it. Unfortunately, as you appear to've noticed there's no way to merge menus with it. I've googled without success for 3rd party control/example program that did the same thing you want without success. Unfortunately it doesn't appear that one exists. If you do have any more success than I did please drop me an email.
"Brian Keating" wrote: Hi Dan,
There is light at end of tunnel! http://support.microsoft.com/default...b;en-us;311765
I'm going to implement my own so thanks again
Cool. Is the MS code sample licenced for reuse by 3rd parties? I didn't
see anything eitherway in the installers clickware. If possible I'd prefer
not to reinvent the wheel. The vb6 app mostly converted to .net. I probably
won't have an immediate chance to investigate what's involved with the stuff
it couldn't update. My need for the functionality is the better part of a
year away, knowing it exists is good enough for the design stage.
"Dan Neely" wrote: "Brian Keating" wrote: There is light at end of tunnel! http://support.microsoft.com/default...b;en-us;311765
The vb6 app mostly converted to .net. I probably won't have an immediate chance to investigate what's involved with the stuff it couldn't update.
I had a chance to play with it abit this afternoon. I was able to fix
everything except webfile access (don't need it) and print (low priority),
and started experimenting with it. It appears to have _almost_ everything I
need. I discovered one missing feature that's going to draw alot of flak
though. The track changes features are greyed out in the menu. The vb6 demo
was the same way so I know it's not a conversion issue. Potentially this
might be a killer flaw.
So close, and yet so far. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Matthew Wieder |
last post by:
I have the following requirements:
Build a stand-alone C# application that asks the user to click in a cell
in an Excel spreadsheet, and then displays the address of that cell in
the C#...
|
by: |
last post by:
The following code:
Private Sub ClearControls(ByVal ctrl As Control)
Dim i As Int32
For i = ctrl.Controls.Count - 1 To 0 Step -1
ClearControls(ctrl.Controls(i))
|
by: pmud |
last post by:
Hi,
I need to use an Excel Sheet in ASP.NET application so that the users can
enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever
the USER ENETRS needs to go to the...
|
by: Howard Kaikow |
last post by:
There's a significant problem in automating Excel from VB .NET.
Reminds me of a problem I encountered almost 3 years ago that was caused by
the Norton Auntie Virus Office plug-in.
Can anybody...
|
by: George |
last post by:
Is there a fast way to transfer an Excel range to an array?
Example:
Excel range is E2:E300
Dim person() as string
Thanks,
George
|
by: Benny Raymond |
last post by:
I get the following error message when trying to use the Excel Interop
on my wife's machine however I don't get it on my own - we have the same
version of Office installed - what could be the...
|
by: Frank |
last post by:
Hello All,
I ham using VS.NET 2003.
Have followed instructions from
http://gridviewguy.com/ArticleDetails.aspx?articleID=26 along with several
other articles to no avail. I am pulling my hair...
|
by: mabond |
last post by:
Hi
recently read a posting and reply about Excel processs still running after
the Appliction.Quit was called. Thought I might be able to use the same...
|
by: forumaic |
last post by:
Hello,
I am trying to export data to excel from datagrid, and I am getting an
error: "The Controls collection cannot be modified because the control
contains code blocks (i.e. <% ... %>)."
...
|
by: hakeemkazmi |
last post by:
hi there,i am able to export the gridview data to excel sheet successfully but my gridview has 3 buttonfields like details etc etc which when clicked give the details,but i dont want those...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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,...
|
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...
|
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,...
| |