Chemistry Add-In for Microsoft Word

CML is Cool

  • Home
  • History
  • Download
  • Consultancy
  • Sponsors
  • Under the Hood
  • News
  • Shop
    • My account
    • Basket
  • Support ▾
    • Knowledge Base
    • Usage
    • FAQs
    • Tutorials

Chem4Word – Technical Note

What is Chem4Word?

The Chemistry Add-In for Microsoft Word (Chem4Word) is a chemistry-aware add-in for Microsoft Word which is sponsored and supported by the .NET Foundation (https://dotnetfoundation.org).

It works with Office (Word) 2010 or greater, running on Windows 7 or greater.

Microsoft Office Extensibility

Starting with Microsoft Word 2007 (or later) users are given the option to store documents as Office Open XML files with a “.docx” extension. Such documents are no longer stored as binary files but are extensible mark-up language (XML) files describing how the document is laid out, this XML data is compressed using the industry-standard ZIP compression algorithm before being saved with the “.docx” extension.  The “x” of “.docx” signifies that the files contain compressed XML, not the older binary data.

Microsoft Office allows a programmer to use the Microsoft Office extensibility layer called “Visual Studio Tools for Office” (VSTO) to write a .net program which will enhance the capabilities of office applications, such as Microsoft Word. They do this by writing a special program called an add-in.  Once an add-in is installed it runs when Microsoft Word is started.  Typically an add-in will create an extra Microsoft Office Ribbon to allow the user to interact with the document using its functions.

Microsoft Word add-ins can store complete XML documents called Custom Xml Parts inside a special area of a document.  Microsoft Word also has containers called Content Controls, which can store various types of content such as drawings.

How the Chem4Word Add-In works

The Chem4Word add-in stores the chemical structures as Chemical Mark-up Language (CML) in the aforementioned Custom XML Parts then renders the structure inside a Custom Control using Drawing ML. The Chem4Word add-in also allows the user to depict the structure by one of its textual descriptors.  When you edit a chemistry structure and save the results, all of its linked visualisations are also updated.  A web service is then used to generate a code known as an InChiKey, this uniquely identifies the structure, the InChiKey is stored as an additional textual descriptor element inside the CML.

One big advantage of having the chemistry embedded as machine-readable XML is that the data is very easily imported into other information systems such as SharePoint, allowing unique chemical structures to be catalogued and search.

The Chem4Word add-in allows the user to interact with chemistry in a document as follows

  • Edit / draw your structures using an embedded open-source chemical structure editor called ChemDoodle Web Sketcher.
  • Edit textual descriptors for a structure.
  • Import chemical structures from web services such as PubChem, ChEBI and Opsin.
  • Import files in CML or MDL Molfile format.
  • Export your drawn or imported structures in CML or MDL Molfile format. You can use this option to copy drawings to other documents or to share them with colleagues.

A screenshot of Microsoft Office 2016 showing the Chem4Word ribbon and an embedded structure is shown below.

Chem4Word Add-In
Click to show full size

Further Information

You can download the latest version of the Chemistry Add-in for Microsoft Word from our Github site. The site also includes documentation, which includes a user guide and an architecture guide.

Help

If you have any problems using Chem4Word, then please get in touch with us via our Chem4Word Facebook group page.

Are you’re a developer, who has Microsoft Visual Studio 2015 installed on your PC and are interested in seeing how the add-in works then you can download the latest source code from our source code repository at GitHub.

Do you have time to spare and wish to contribute to the project, if so please get in touch with us also via our Chem4Word Facebook group page.

Share this:

  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to email a link to a friend (Opens in new window) Email

Recent Posts

  • Chem4Word – V3.3.10 Release 8
  • Why Should I Use Chem4Word?
  • SketchEl file support now included in V3.3
  • Improved Chemical Libraries are live in Chem4Word!
  • Draw Chemical Reactions Easily and Quickly with Chem4Word!

Archives

  • February 2025
  • July 2023
  • June 2023
  • March 2023
  • December 2022
  • November 2022
  • October 2022
  • March 2022
  • September 2020
  • August 2020
  • December 2018
  • April 2017
  • January 2017
  • December 2016
  • September 2016
  • December 2015
  • Privacy Policy – Chemistry Add-In for Microsoft Word
  • About Us
  • Contact Us
  • Cookie Policy (UK)

Copyright © 2025 · "Supported by the .NET Foundation" · Log in

Manage Cookie Consent
We use technologies like cookies to store and/or access device information. We do this to improve browsing experience and to show (non-) personalised ads. Consenting to these technologies will allow us to process data such as browsing behaviour or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
View preferences
{title} {title} {title}