15,907,687 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 9565931 (Top 10 by date)
Member 9565931
18-Apr-13 6:08am
View
I had envisaged to do this, but I would have preferred a solution that does not cause the close of Excel files.
Member 9565931
18-Apr-13 5:58am
View
It doesn't quite fiy my problem. Let me tell you more details :
I use the WebBrowser component. This allows me to open an Excel file in my application. It works like a web browser: I Navigate ("C:. ... / File.xlsx"), and I catch the event of the end of loading, and I recovered the instance of excel with this code:
var obj = (WebBrowser)_webBrowser.ActiveXInstance;
object doc = obj.Document;
XlWorkBook = (Workbook)doc;
XlApplication = XlWorkBook.Application;
However, I have no control over the behavior of the component. If Excel is already open, it will open the workbook in this instance. But I wish it opens every time in a NEW instance.
Member 9565931
18-Apr-13 5:54am
View
The "by hand" don't really matter.
I use the WebBrowser component. This allows me to open an Excel file in my application. It works like a web browser: I Navigate ("C:. ... / File.xlsx"), and I catch the event of the end of loading, and I recovered the instance of excel with this code:
var obj = (WebBrowser)_webBrowser.ActiveXInstance;
object doc = obj.Document;
XlWorkBook = (Workbook)doc;
XlApplication = XlWorkBook.Application;
However, I have no control over the behavior of the component. If Excel is already open, it will open the workbook in this instance. But I wish it opens every time in a NEW instance.
Member 9565931
18-Apr-13 5:20am
View
I saw that you could force open a new instance by default by modifying the registry, but this is not quite what I want. I want a certain instance of Excel must to be one in which open Excel files by default.
Member 9565931
18-Apr-13 5:19am
View
This is not really what I want to do.
What I want is that Excel files opened "by hand" open by default in my own Excel instance I created.
Member 9565931
18-Apr-13 5:15am
View
What I want is that Excel files open "by hand" open in my own Excel instance I created.
Member 9565931
18-Apr-13 5:15am
View
What I want is that Excel files open "by hand" open in my own Excel instance I created.
Member 9565931
18-Apr-13 4:57am
View
I saw that you could force open a new instance by default by modifying the registry, but this is not quite what I want.
I want a certain instance of Excel must to be one in which open Excel files by default.
Member 9565931
18-Apr-13 4:53am
View
Not. I want my xlApp to be the Excel instance in which opens by default all Excel files.
Member 9565931
17-Apr-13 3:29am
View
I know that.
The problem is that I use WebBrowser, and I can not use it.
Show More