Page 1 of 1

mathematical formulas will be losed when open docx

Posted: Mon Apr 18, 2022 3:08 pm
by henryxxf
HI.

Today I tested RichView for the first time, and downloaded complied demo, then found that the mathematical formulas will be losed when the docx file is opened by RichViewActions, but the content pasted through the clipboard is perfect, the formulas will become image.

Conversely, if the rvf file was saved to docx,the formulas is OK opened with word,the formulas become image.

Maybe I didn't explain it clearly, I attached a picture as follows

Re: mathematical formulas will be losed when open docx

Posted: Tue Apr 19, 2022 8:00 am
by Sergey Tkachenko
Yes, equations are saved in RTF, DocX and HTML files as images.
A free version Adit Math Engine (shipped with TRichView) does not have methods for saving equations in these files.
A commercial version of Adit Math Engine includes these methods, but they are not supported by TRichView yet, will be implemented in future.

Re: mathematical formulas will be losed when open docx

Posted: Tue Apr 19, 2022 8:14 am
by henryxxf
Thanks for your prompt answer!
I think the free version Adit Math Engine already suffices for my needs, I'm not worth buying AditMath just for a feature.

In other words, can RichView convert the formula into a picture by itself when opening the docx file? If so, I think RichView has fully met my requirements.

Otherwise, I have to try to read docx through createoleobject in delphi, although this method has other problems that I can't solve.

Re: mathematical formulas will be losed when open docx

Posted: Tue Apr 19, 2022 9:11 am
by Sergey Tkachenko
When TRichView saves DocX, RTF, or HTML files, is saves equations as images.
TRichView cannot load equations from DocX (if equations was added by MS Word; of course, when it loads DocX saved by itself, it loads these pictures).
TRichView cannot load equations from RTF (if equations was added by MS Word); however, RTF contains both an equation and its alternative as a metafile picture, so TRichView loads this metafile (only VCL version of TRichView; there is no support of metafiles in LCL and FMX versions).

Re: mathematical formulas will be losed when open docx

Posted: Tue Apr 19, 2022 10:31 am
by henryxxf
thanks
I tried to save the docx to rtf format, and then opened it with richview, and found that all the formulas have become pictures, which looks very good.

I will download a trial version of richview and see how it works. Many thanks