473,396 Members | 2,147 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,396 software developers and data experts.

Excel instance in VB.Net - as child of parent form

Firstly I hope I'm in the right forum ..... if not can someone re-direct me
please.

I have an application with a main form properties set to mdiparent = true.
Toolbar button allows user to open an instance of Excel for work on a
particular file

dim xlApp as New Excel.Application
xlApp.Visible = true

' more code follows to open particular file etc

The Excel app opens in the normal way on users Desktop and my app is now
behind Excel

I want, specifically, to open Excel and have the instance contained within a
child window(form) within my app's main window

I know how to create the child window(form)

dim f as New frmxlApp
f.parent = me
f.show

But how do I get the instance of Excel to appear only in the window opened
as the child (f)

I've tried creating a custom control using the "com" object "Microsoft
Office Spreadsheet 9.0" but that only opens a spreadsheet window and does not
give me the full Excel functionality I need.

Does anyone have any ideas .... or, even better, solutions.

Using Windows XP, Visual Studio .NET 2003, .NET Framework 1.1 (SP1), Office
2000 (SP3)

Thanks and regards

Michael Bond
Nov 21 '05 #1
3 3306
Mabond,

You are on the right newsgroup. This is not really my stuff but in the
weekend there are less active persons in these newsgroups.

Beside the 3 major dotNet developer newsgroups is there a 4th major
development newsgroup. In your case would I give it a try too there.

microsoft.public.excel.programming

I hope this helps something on your route.

Cor
Nov 21 '05 #2
Mabond,

You are on the right newsgroup. This is not really my stuff but in the
weekend there are less active persons in these newsgroups.

Beside the 3 major dotNet developer newsgroups is there a 4th major
development newsgroup. In your case would I give it a try too there.

microsoft.public.excel.programming

I hope this helps something on your route.

Cor
Nov 21 '05 #3
On Fri, 9 Sep 2005 14:43:01 -0700, mabond <ma****@discussions.microsoft.com> wrote:

¤ Firstly I hope I'm in the right forum ..... if not can someone re-direct me
¤ please.
¤
¤ I have an application with a main form properties set to mdiparent = true.
¤ Toolbar button allows user to open an instance of Excel for work on a
¤ particular file
¤
¤ dim xlApp as New Excel.Application
¤ xlApp.Visible = true
¤
¤ ' more code follows to open particular file etc
¤
¤ The Excel app opens in the normal way on users Desktop and my app is now
¤ behind Excel
¤
¤ I want, specifically, to open Excel and have the instance contained within a
¤ child window(form) within my app's main window
¤
¤ I know how to create the child window(form)
¤
¤ dim f as New frmxlApp
¤ f.parent = me
¤ f.show
¤
¤ But how do I get the instance of Excel to appear only in the window opened
¤ as the child (f)
¤
¤ I've tried creating a custom control using the "com" object "Microsoft
¤ Office Spreadsheet 9.0" but that only opens a spreadsheet window and does not
¤ give me the full Excel functionality I need.
¤
¤ Does anyone have any ideas .... or, even better, solutions.
¤
¤ Using Windows XP, Visual Studio .NET 2003, .NET Framework 1.1 (SP1), Office
¤ 2000 (SP3)
¤

You should be able to use either the DSOFramer control or the WebBrowser control:

http://support.microsoft.com/default...b;en-us;311765

http://support.microsoft.com/default...b;en-us;304643
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 21 '05 #4

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

Similar topics

1
by: mabond | last post by:
Firstly I hope I'm in the right forum ..... if not can someone re-direct me please. I have an application with a main form properties set to mdiparent = true. Toolbar button allows user to open...
6
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#...
3
by: Maheshkumar.R | last post by:
Hi groups, How i can command over the MDI CHIlD forms created dynamically at runtime from PARENT. Let say, i have generated 5 mdichild forms, but i want to work with child form1 from MDI...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
3
by: Zack Sessions | last post by:
I am using VB.NET 2003. I have read the threads concerning the problem where the FormStartPosition of CenterParent is ignored if the form is displayed with the Show method as opposed to the...
0
by: mabond | last post by:
Firstly I hope I'm in the right forum ..... if not can someone re-direct me please. I have an application with a main form properties set to mdiparent = true. Toolbar button allows user to open...
10
by: John M. Gabriele | last post by:
The following short program fails: ----------------------- code ------------------------ #!/usr/bin/python class Parent( object ): def __init__( self ): self.x = 9 print "Inside...
4
by: Richard Lewis Haggard | last post by:
What is the mechanism by which a child window can notify its parent that it has been clicked on? -- Richard Lewis Haggard www.Haggard-And-Associates.com
0
by: Miro | last post by:
I searched google and I think I have solved the issue. Again, if someone could quickly skim over my example and lemmi know if it is the "correct" way of doing things. It works, but again - is it...
9
by: sitko | last post by:
Hi, I have an Order tracking spreadsheet that I need help with. I have a 2 worksheets "Open", and "Closed". I have entries on the "Open" sheet which may or may not be grouped together. I've...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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...
0
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
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
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,...

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.