ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Urgent Question not direct related to ImageEn
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

MrDeveloper

Switzerland
17 Posts

Posted - May 06 2019 :  08:26:45  Show Profile  Reply
Hello Guys

I really hope that you can help me out or at least bring me an good advice.

What I'm trying to do is the following:

It try to use the IEV Format directly in Word or any other OLE Container application. So I need to make a OLE Server (COM-Server) application which can be used to embed the IEV Images into a Word, Excel etc. document. And when I try to double click on the image I want to edit the current image inside the ImageEn based application.

The problem is now I don't know where to start excatly. Even after a lot of Google searches I just found out that the OLE is the old name for the COM technolgy and that it seems I'm wanting to create an "Active document" etc. But I can't find any simple demo application for Delphi which shows me the basic techniques to create an OLE image server application. The best way that you can understand what I'm trying to do, is when you embed an simple windows paint image (as "Bitmap image" object) into Word and after a double click on it you can directly edit it in the Windows Paint application.

Maybe one of you guys did already something similiar? Maybe not for ImageEn but the basic techniques would be very helpful for me.

Or hopefully Nigel has any other ideas to handle this task?

I really appreciate your support in advance!

xequte

38180 Posts

Posted - May 06 2019 :  18:40:00  Show Profile  Reply
Hi

Off the top of my head...

I don't know whether this is possible or not, having never tried, or even thought of this before.

Firstly, though, have you considered other options, such as just converting the IEV file to a format that Word supports, such as JPEG. You could easily add a button to the Word toolbar to open the JPEG for editing in your custom app. The IEV data could be embedded in the JPEG meta-data, so your app would edit that instead, and output an updated JPEG for Word (your button code would then update the image).

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

MrDeveloper

Switzerland
17 Posts

Posted - May 08 2019 :  07:23:19  Show Profile  Reply
Hello Nigel

Thanks for your reply. I don't want to create a special plugin for an office product. Just to use the windows API features that we can embed each ImageEn image etc. into an OLE Container application.

So after a longer research I think it should be very easy on your side to implement this directly into a ImageEn control/component. Please take a deeper look at IOleObject (https://docs.microsoft.com/en-us/windows/desktop/api/oleidl/nn-oleidl-ioleobject) and also at IOleInPlaceActiveObject (https://docs.microsoft.com/en-us/windows/desktop/api/oleidl/nn-oleidl-ioleinplaceactiveobject). Maybe we can extent one of the existing demo applications to show this "new" feature/behaviour.

I would be very happy to see this in a very timly upcoming update release.

Thanks for your feedback in advance!
Go to Top of Page

xequte

38180 Posts

Posted - May 08 2019 :  17:41:57  Show Profile  Reply
Hi

You can request it on our User Voice page:

https://imageen.uservoice.com


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: