Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Embedded Excel sheet controlling

Posted on 1999-06-24
8
Medium Priority
?
350 Views
Last Modified: 2013-11-20
I've embedded Excel sheet into my view (I used standard OLE COleInsertDialog). Now I want to control that sheet. For example I want to open existing xls-file. What do I have to do?
0
Comment
Question by:AVaulin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 
LVL 23

Expert Comment

by:naveenkohli
ID: 1307810
This will happen through the magic of Menu merging. When you embeded excel into your application, menu from Excel application should have merged with menu of your aplication. Now you can goto File, New menu and open the existing file. The view for excel sheet should be active at that time.
If the two menus did not merge, then houston we have problem :)

Good Luck!
0
 
LVL 4

Author Comment

by:AVaulin
ID: 1307811
Yes, menus were merged. But Excel's "File" menu is not accessable. You can try open excel file in DevStudio and see how menus will be merged: "File" menu will be from Studio and others will be from Excel.
So I can't accept your answer.
0
 
LVL 23

Expert Comment

by:naveenkohli
ID: 1307812
When you used COleInserDialog did ya use the option of inserting from existing file. Then you browse for the excel sheet you want to embed and that xls will be opened in your view.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Author Comment

by:AVaulin
ID: 1307813
Yes, it works. But it does not mean controlling (see question text). How (for example) can I change A1 cell text? MS sample COMEXCEL uses "Range" function to do it. But they do not use embedding in that sample.
0
 
LVL 4

Author Comment

by:AVaulin
ID: 1307814
Adjusted points to 300
0
 
LVL 23

Accepted Solution

by:
chensu earned 1200 total points
ID: 1307815
HOWTO: Automate Linked and Embedded ActiveX Documents
http://support.microsoft.com/support/kb/articles/q193/0/39.asp

HOWTO: Embed and Automate a Microsoft Excel worksheet with MFC
http://support.microsoft.com/support/kb/articles/Q184/6/63.asp
0
 
LVL 4

Author Comment

by:AVaulin
ID: 1307816
Thank you.
Let me try. Wait some time...
0
 
LVL 4

Author Comment

by:AVaulin
ID: 1307817
It works exactly how I wanted.
Thank you.
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

662 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question