Technical Support Forum Index
Technical Support Forum
Access ChemAxon scientists and developers here. For registration and login issues contact website support.

Support Ticket System is replacing forum

This forum was converted into a searchable archive. You cannot add posts here any more. For support please use our new Ticket System.

Create your first ticket
Marvin OLE - Copy from Applet into Office
To watch this topic for replies  Register (enables digests) or give email address:
This topic is locked: you cannot edit posts or make replies.
Display posts from previous:   
    View previous topic :: View next topic    
Author Message
Yingyao

Joined: 30 Sep 2004
Posts: 205

View user's profile

Back to top
Link to postPosted: Thu Feb 28, 2008 8:42 pmPost subject: Marvin OLE - Copy from Applet into Office Reply with quote

I am a bit behind all the new exciting developments here.

I just tested the Marvin OLE, it looks really nice and I am sure chemists would love to be able to paste Marvin object instead of low-resolution images into PowerPoint slides.

Two questions:
1) When double click an OLE object in an office document then close the Sketcher, it always popup the save dialog, even if no editing has been performed. Could the code be updated in the next release, so that the dialog only appears when it's necessary? Of course, I just double click to "zoom in" instead of modifying the structure.

2) If I copy a structure from a Marvin Applet, it becomes a picture when pasted into Office. (say copy from the following page)

http://www.chemaxon.com/marvin/examples/applets/example-sketch3.1.html

Any reason Applet cannot copy an OLE object into the clipboard. I want to write a web tool to display several structures for a user, so that that user can then copy the structures into a powerpoint slide, without the need to construct structures from smiles one at a time. Do I have to display the structures using web start instead?
Tamas
ChemAxon personnel
Joined: 21 May 2004
Posts: 2171

View user's profile

Back to top
Link to postPosted: Fri Feb 29, 2008 8:44 pmPost subject: Reply with quote

Thanks for the bug reports. We will check them.
Just one note about OLE copy. To be able to copy OLE from applet to office document, Marvin Beans has to be installed. Is Marvin Beans there?
Yingyao

Joined: 30 Sep 2004
Posts: 205

View user's profile

Back to top
Link to postPosted: Fri Feb 29, 2008 10:46 pmPost subject: Reply with quote

Sure, Marvin bean is installed.

I could copy molecules from Web Start examples hosted on ChemAxon web site and copy then into Office; them behave as expect. But copying molecules from Applets ends up in the picture format.
Tamas
ChemAxon personnel
Joined: 21 May 2004
Posts: 2171

View user's profile

Back to top
Link to postPosted: Sat Mar 01, 2008 1:27 amPost subject: Reply with quote

Indeed, OLE copy does not work in Marvin 5.0.1 applet package.
The problem is that a jar (that OLE copy requires) is skipped from the applet release.
I have uploaded it to the Marvin site. So, the online Marvin examples are working fine, now.
Please download the following jar and copy it into the directory of marvin applet.
http://www.chemaxon.com/marvin/izmcom-natives.jar
It will solve the copy issue.
Of course, in the next release, the mentioned jar will be in the downloadable applet package.
Tamas
ChemAxon personnel
Joined: 21 May 2004
Posts: 2171

View user's profile

Back to top
Link to postPosted: Sat Mar 01, 2008 3:58 amPost subject: Reply with quote

The first issue (drop needless confirmation dialog by exit from sketcher in OLE mode) is also fixed.
Next release will include the bugfix.
Yingyao

Joined: 30 Sep 2004
Posts: 205

View user's profile

Back to top
Link to postPosted: Sat Mar 01, 2008 4:08 amPost subject: Transparent background Reply with quote

Nice, all seems to work. Thanks.

One more follow-up question. Is there a way to use transparent background? For people making powerpoint presentations, this is a big plus. (it will be super if one has a transparent option in Sketch color option)
If one does not have Marvin Bean, and simply copy a structure from an applet into Office as an image, is there a way to set transparent background?
It might make sense to set default background to transparent than white.

I just tested ChemDraw, its OLE object is shown in transparent.
Tamas
ChemAxon personnel
Joined: 21 May 2004
Posts: 2171

View user's profile

Back to top
Link to postPosted: Sat Mar 01, 2008 4:19 amPost subject: Reply with quote

Unfortunatelly not. The image in Marvin OLE object is an EMF. We create EMF with the Freehep API. It is a Java libary to write graphics into several image formats (also in EMF). But Freehep does not support transparent EMF.
This topic is locked: you cannot edit posts or make replies.
Page 1 of 1


To watch this topic for replies   Register (enables digests) or give email address  
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum