473,385 Members | 1,814 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,385 software developers and data experts.

How to embed external document?

In the good old days I believe people were using the arcane technology which
came to be known as COM+ to embed other application's document in their own
document.

Like a Word with document a Windows Media Player or Excel or Visio document
inside, double click on it and *bang* you coud start edit it using
Excel/WMP/Visio toolbar.

Apparently even OpenOffice could do that.

Now here is my question:
I'm a new generation programmer. Blissfully ignorant of such thing.
But I would like to know and embed Word, Excel or other kind of document in
my application's own document!

How could I do that?

And is there an up-to-date technology (i.e.: .NET API) to do that?
Jun 13 '06 #1
13 3119
Hello, Lloyd!

LD> Like a Word with document a Windows Media Player or Excel or Visio
LD> document inside, double click on it and *bang* you coud start edit it
LD> using Excel/WMP/Visio toolbar.

LD> Apparently even OpenOffice could do that.

LD> Now here is my question:
LD> I'm a new generation programmer. Blissfully ignorant of such thing.
LD> But I would like to know and embed Word, Excel or other kind of
LD> document in my application's own document!

LD> How could I do that?

Using COM-interop.

Look at
( http://support.microsoft.com/kb/302084/en-us )( http://www.builderau.com.au/architec...9198903,00.htm )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Jun 13 '06 #2
Hi Lloyd,

"Lloyd Dupont" <net.galador@ld> wrote in message
news:eh**************@TK2MSFTNGP04.phx.gbl...
In the good old days I believe people were using the arcane technology
which came to be known as COM+ to embed other application's document in
their own document.

Like a Word with document a Windows Media Player or Excel or Visio
document inside, double click on it and *bang* you coud start edit it
using Excel/WMP/Visio toolbar.

Apparently even OpenOffice could do that.

Now here is my question:
I'm a new generation programmer. Blissfully ignorant of such thing.
But I would like to know and embed Word, Excel or other kind of document
in my application's own document!

How could I do that?

And is there an up-to-date technology (i.e.: .NET API) to do that?


the technology you are talking about it OLE (Object Linking and Embedding).

As Vadym has mentioned, you can use COM Interop to automate WinWord, but
this alone is not enough for OLE.

Unfotunately, in Windows Forms itself, there is no good suppot for OLE
Document hosting. In the worst case, you have to use MFC's OLE support which
is quite sophisticated.

Marcus

Jun 13 '06 #3

"Lloyd Dupont" <net.galador@ld> wrote in message
news:eh**************@TK2MSFTNGP04.phx.gbl...
| In the good old days I believe people were using the arcane technology
which
| came to be known as COM+ to embed other application's document in their
own
| document.

COM+ is not arcane and has nothing to do with document embedding, what you
are refering to is extended OLE or Active Document Containment, a COM based
technology.
|
| Like a Word with document a Windows Media Player or Excel or Visio
document
| inside, double click on it and *bang* you coud start edit it using
| Excel/WMP/Visio toolbar.
|
| Apparently even OpenOffice could do that.
|
| Now here is my question:
| I'm a new generation programmer. Blissfully ignorant of such thing.
| But I would like to know and embed Word, Excel or other kind of document
in
| my application's own document!
|
| How could I do that?

Implement an Active Document Container, using a framework like MFC. Please
consult MSDN for details on "Active Document Containers".

|
| And is there an up-to-date technology (i.e.: .NET API) to do that?
|
Kind of, .NET has the "Webbrowser" control which is a container usable from
managed code to embed an OLE server like Word, excel etc.., but the
technology is still OLE (that is COM), and that won't change because of
..NET.
You can also create your own container using a tool like MFC (or Delphi)

Willy.


Jun 13 '06 #4
Lloyd Dupont wrote:
In the good old days I believe people were using the arcane
technology which came to be known as COM+ to embed other
application's document in their own document.
As others have said, you're describing OLE.

Like a Word with document a Windows Media Player or Excel or Visio
document inside, double click on it and *bang* you coud start edit it
using Excel/WMP/Visio toolbar.

Apparently even OpenOffice could do that.

Now here is my question:
I'm a new generation programmer. Blissfully ignorant of such thing.
But I would like to know and embed Word, Excel or other kind of
document in my application's own document!

How could I do that?

And is there an up-to-date technology (i.e.: .NET API) to do that?


You can embed any document you want in your own document in any way that you
want. Now, if you expect Word 2003 to be able to activate an embedded Word
document inside your app, then your only choice is OLE. Implementing an OLE
document container on .NET using WinForms might be possible, but it would
take an awful lot of work.

With Office 2007 and Windows Vista comes XPS - Xml Paper Specification. I
believe that the XPS spec fully supports linking and embedding documents -
hopefully there will be some usable managed support for manipulating XPS
documents and perhaps even a standard for embedded activation. But that's
not something you can use today.

-cd
Jun 13 '06 #5
If you are interested in learning OLE, the best resource is still
"Inside OLE" by Kraig Brockschmidt, MS Press (circa 1995).
Note this is the second edition of the book. I still have to find
another technical book on any subject with the depth and
breadth of this one... If you have original VC 6.0 installation
CDs, this book is available on the MSDN Library CDs
shipping with VC 6 (in the Books section), but has long since
been removed from mainstream MSDN Library.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: ag********@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Lloyd Dupont" <net.galador@ld> wrote in message
news:eh**************@TK2MSFTNGP04.phx.gbl...
In the good old days I believe people were using the arcane technology
which came to be known as COM+ to embed other application's document in
their own document.

Like a Word with document a Windows Media Player or Excel or Visio
document inside, double click on it and *bang* you coud start edit it
using Excel/WMP/Visio toolbar.

Apparently even OpenOffice could do that.

Now here is my question:
I'm a new generation programmer. Blissfully ignorant of such thing.
But I would like to know and embed Word, Excel or other kind of document
in my application's own document!

How could I do that?

And is there an up-to-date technology (i.e.: .NET API) to do that?

Jun 13 '06 #6
thanks!

"Vadym Stetsyak" <va*****@ukr.net> wrote in message
news:On**************@TK2MSFTNGP03.phx.gbl...
Hello, Lloyd!

LD> Like a Word with document a Windows Media Player or Excel or Visio
LD> document inside, double click on it and *bang* you coud start edit it
LD> using Excel/WMP/Visio toolbar.

LD> Apparently even OpenOffice could do that.

LD> Now here is my question:
LD> I'm a new generation programmer. Blissfully ignorant of such thing.
LD> But I would like to know and embed Word, Excel or other kind of
LD> document in my application's own document!

LD> How could I do that?

Using COM-interop.

Look at
( http://support.microsoft.com/kb/302084/en-us )(
http://www.builderau.com.au/architec...9198903,00.htm )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

Jun 14 '06 #7
thanks!

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:uz**************@TK2MSFTNGP03.phx.gbl...

"Lloyd Dupont" <net.galador@ld> wrote in message
news:eh**************@TK2MSFTNGP04.phx.gbl...
| In the good old days I believe people were using the arcane technology
which
| came to be known as COM+ to embed other application's document in their
own
| document.

COM+ is not arcane and has nothing to do with document embedding, what you
are refering to is extended OLE or Active Document Containment, a COM
based
technology.
|
| Like a Word with document a Windows Media Player or Excel or Visio
document
| inside, double click on it and *bang* you coud start edit it using
| Excel/WMP/Visio toolbar.
|
| Apparently even OpenOffice could do that.
|
| Now here is my question:
| I'm a new generation programmer. Blissfully ignorant of such thing.
| But I would like to know and embed Word, Excel or other kind of document
in
| my application's own document!
|
| How could I do that?

Implement an Active Document Container, using a framework like MFC. Please
consult MSDN for details on "Active Document Containers".

|
| And is there an up-to-date technology (i.e.: .NET API) to do that?
|
Kind of, .NET has the "Webbrowser" control which is a container usable
from
managed code to embed an OLE server like Word, excel etc.., but the
technology is still OLE (that is COM), and that won't change because of
.NET.
You can also create your own container using a tool like MFC (or Delphi)

Willy.

Jun 14 '06 #8
> You can embed any document you want in your own document in any way that
you want. Now, if you expect Word 2003 to be able to activate an embedded
Word document inside your app, then your only choice is OLE. Implementing
an OLE document container on .NET using WinForms might be possible, but it
would take an awful lot of work.
mmhh... :(
With Office 2007 and Windows Vista comes XPS - Xml Paper Specification.
I believe that the XPS spec fully supports linking and embedding
documents - hopefully there will be some usable managed support for
manipulating XPS documents and perhaps even a standard for embedded
activation. But that's not something you can use today.

ha! in some distant future it would be possible again!
Jun 14 '06 #9
I lost VC5 :(
I have VS2003 & 2005, does it help?

"Alexander Nickolov" <ag********@mvps.org> wrote in message
news:ea**************@TK2MSFTNGP04.phx.gbl...
If you are interested in learning OLE, the best resource is still
"Inside OLE" by Kraig Brockschmidt, MS Press (circa 1995).
Note this is the second edition of the book. I still have to find
another technical book on any subject with the depth and
breadth of this one... If you have original VC 6.0 installation
CDs, this book is available on the MSDN Library CDs
shipping with VC 6 (in the Books section), but has long since
been removed from mainstream MSDN Library.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: ag********@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Lloyd Dupont" <net.galador@ld> wrote in message
news:eh**************@TK2MSFTNGP04.phx.gbl...
In the good old days I believe people were using the arcane technology
which came to be known as COM+ to embed other application's document in
their own document.

Like a Word with document a Windows Media Player or Excel or Visio
document inside, double click on it and *bang* you coud start edit it
using Excel/WMP/Visio toolbar.

Apparently even OpenOffice could do that.

Now here is my question:
I'm a new generation programmer. Blissfully ignorant of such thing.
But I would like to know and embed Word, Excel or other kind of document
in my application's own document!

How could I do that?

And is there an up-to-date technology (i.e.: .NET API) to do that?


Jun 14 '06 #10
thanks!

"Marcus Heege" <NO****@heege.net> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi Lloyd,

"Lloyd Dupont" <net.galador@ld> wrote in message
news:eh**************@TK2MSFTNGP04.phx.gbl...
In the good old days I believe people were using the arcane technology
which came to be known as COM+ to embed other application's document in
their own document.

Like a Word with document a Windows Media Player or Excel or Visio
document inside, double click on it and *bang* you coud start edit it
using Excel/WMP/Visio toolbar.

Apparently even OpenOffice could do that.

Now here is my question:
I'm a new generation programmer. Blissfully ignorant of such thing.
But I would like to know and embed Word, Excel or other kind of document
in my application's own document!

How could I do that?

And is there an up-to-date technology (i.e.: .NET API) to do that?


the technology you are talking about it OLE (Object Linking and
Embedding).

As Vadym has mentioned, you can use COM Interop to automate WinWord, but
this alone is not enough for OLE.

Unfotunately, in Windows Forms itself, there is no good suppot for OLE
Document hosting. In the worst case, you have to use MFC's OLE support
which is quite sophisticated.

Marcus

Jun 14 '06 #11
> Implement an Active Document Container, using a framework like MFC. Please
consult MSDN for details on "Active Document Containers".
looking at that...
|
| And is there an up-to-date technology (i.e.: .NET API) to do that?
|
Kind of, .NET has the "Webbrowser" control which is a container usable
from
managed code to embed an OLE server like Word, excel etc.., but the
technology is still OLE (that is COM), and that won't change because of
.NET.
You can also create your own container using a tool like MFC (or Delphi)


interesting idea...
Jun 14 '06 #12

"Lloyd Dupont" <net.galador@ld> wrote in message
news:e%***************@TK2MSFTNGP05.phx.gbl...
I lost VC5 :(
I have VS2003 & 2005, does it help?


No, unfortunately. Moreover the book is out-of-print, but it does
occasionally crop up in second-hand book stores. Your best bet is to ask
around for an old VS6 distribution, with the MSDN Library.

Jun 14 '06 #13
OK :(
Thanks!

"Brian Muth" <bm***@mvps.org> wrote in message
news:uQ**************@TK2MSFTNGP02.phx.gbl...

"Lloyd Dupont" <net.galador@ld> wrote in message
news:e%***************@TK2MSFTNGP05.phx.gbl...
I lost VC5 :(
I have VS2003 & 2005, does it help?


No, unfortunately. Moreover the book is out-of-print, but it does
occasionally crop up in second-hand book stores. Your best bet is to ask
around for an old VS6 distribution, with the MSDN Library.

Jun 15 '06 #14

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

Similar topics

3
by: gsb | last post by:
I'd like to get the offset coordinates, top & left, of an embedded Flash movie. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ...
3
by: Tony Sutton | last post by:
I have this following code in my html file: <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#...
11
by: Anna | last post by:
Hi all. I want to embed the EMBED tag in the object tag. I understood that I need to provide a PARAM tag inside the OBJECT whose value will hold the content of EMBED src attribute, but after...
1
by: snicks | last post by:
I have a series of XLS files which I need to embed into a PowerPoint presentation on an IIS server. I’ll be using VB.NET. I’ve tried using an ASPOSE.PowerPoint control to do this and it does...
13
by: Lloyd Dupont | last post by:
In the good old days I believe people were using the arcane technology which came to be known as COM+ to embed other application's document in their own document. Like a Word with document a...
3
by: dd | last post by:
Hi, I have some code that hides all Flash objects on a page. It's working fine on IE and Gecko but doesn't work on Safari. There are no errors (shown in the console) when it runs on Safari, and...
0
by: flaviosemeao | last post by:
Hi guys, I am gonna ask the same question again regarding tweening in text fields. I already read some Adobe documentation and I understood that text field has its property _alpha available just...
13
by: windsorben | last post by:
I have some javascript that checks whether or not an answer is correct. It was working fine when the question was asked with text but now that I'm asking the question with audio, the javascript no...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.