Board index » delphi » Delphi ole server app in MS office

Delphi ole server app in MS office

Hi,

I'd like to develop a delphi application that can be used in the same
way as MSGraph.
I mean that can be embedded in word or power point documents. My
application is an internal chart generator and i need to insert those
graph in power point presentation and be able to modify them just like i
will do if it was a MSGraph graph.

How am i supposed to do that?

Any help would really be welcome.

Thanks in advance.

Cheers.

Christophe.

 

Re:Delphi ole server app in MS office


<<Christopher Delhaze:
I'd like to develop a delphi application that can be used
in the same way as MSGraph.
I mean that can be embedded in word or power point
documents.

Quote

Chapters 8 & 9 of David Chappell's Understanding
ActiveX and Ole are helpful on this subject. An
embeddable object has to support the IOleObject,
IRunnableObject, IDataObject, IPersistStorage,
IOleCache2 and IOleCacheControl interfaces, plus
IOleInPlaceObject and IOleInPlaceActiveObject
for in-place activation, or IOleLink for linkable
objects. You can get information about these
interfaces at http://msdn.microsoft.com/

Alternatively, you could create an insertable
ActiveX control, which would do most of the
hard work for you.

--
Deborah Pate

Re:Delphi ole server app in MS office


<<Christopher Delhaze:
I'd like to develop a delphi application that can be used
in the same way as MSGraph.
I mean that can be embedded in word or power point
documents.

Quote

Chapters 8 & 9 of David Chappell's Understanding
ActiveX and Ole are helpful on this subject. An
embeddable object has to support the IOleObject,
IRunnableObject, IDataObject, IPersistStorage,
IOleCache2 and IOleCacheControl interfaces, plus
IOleInPlaceObject and IOleInPlaceActiveObject
for in-place activation, or IOleLink for linkable
objects. You can get information about these
interfaces at http://msdn.microsoft.com/

Alternatively, you could create an insertable
ActiveX control, which would do most of the
hard work for you.

--
Deborah Pate

Re:Delphi ole server app in MS office


<<Christophe Delhaze:
Then concerning insertable ActiveX control, how am
I supposed to develop them

Quote

Oh dear, my vast ignorance about ActiveX stuff is about
to be horribly revealed...

I think you can install ordinary ActiveXs in Word using
the Controls toolbox, but to get them to appear in Word's
Insert|Object list you have to look for their entries in
the registry, and give them a subkey called 'Insertable'.
(A default value of "" seems to be OK.)

Apart from that, you'd have to make sure they
implemented the interfaces I mentioned in my
previous post. That used to be standard for
ActiveX controls, but isn't any more, and I don't
know which interfaces Delphi ActiveX's have
by default. Perhaps someone on the b.p.d.activex
newsgroups could tell you more?

--
Deborah Pate

Other Threads