marvin plugin and word generation

User 910e6a96cd

23-03-2006 09:24:41

dear I just looking for use the marvin plugin in a web (asp) IIS web server application.


I would know if you have alredy use the marvin plugin for generate a word report ?


because the application need to generate a report with all necessary data and also of course the chemical structure !





do you have a idea of the solution to use ? because it's a java plugin so I don't have any idea for put the structure like an image (it's enought for me)





thank for your idea....


regards

ChemAxon aa7c50abf8

23-03-2006 13:50:51

In order to generate an image of the molecule displayed in the MarvinSketch applet do the following:





1.) Use client side Java Script to get a textual representation of the molecule displayed. Use the getMol function of MarvinSketch to do this:


Code:
document.msketch.getMol('mrv');






2.) Submit the molecule's textual representation in an HTML-form for server side processing.





3.) On the server side you can use either


a) the jc_molconvertb operator of JChem Cartridge (http://www.chemaxon.com/jchem/doc/guide/cartridge/cartapi.html#jc_molconvertb) or


b) the Molecule.toBinaryFormat (http://www.chemaxon.com/marvin/doc/api/chemaxon/struc/Molecule.html#toBinFormat(java.lang.String)) method in the MarvinBeans Java API to convert the molecule into an image.





In order to use the Java API (3./b), you need some kind of bridging solution. We plan to support JNBridge, which you can then use to call the Marvin (or JChem) Java API from within ASP.NET.





Peter