how to copy word mathematical expressions and save them as images
<p>I have tried the below code to copy mathematical expressions from word document and save them as images but it doesn't work.</p>

<pre><code>foreach (OMath math in doc.Content.OMaths)
                {
                    math.Range.Select();
                    math.Range.CopyAsPicture();

                    System.Windows.Forms.IDataObject dobj = System.Windows.Forms.Clipboard.GetDataObject();

                    if( dobj.GetDataPresent(typeof(System.Drawing.Bitmap)) )
                    {
                        System.Drawing.Bitmap bitmap = (Bitmap)dobj.GetData(typeof(System.Drawing.Bitmap));
                        bitmap.Save("C:\\tempFolder\\Image" + cnt + ".bmp", ImageFormat.Bmp);
                    }

                    cnt++;

                }
</code></pre>

<p>Anyone can help?
Thanks in advance.</p>
