简体   繁体   中英

Delphi Word Equation automation

Can anyone show me an example of automating an equation? I need to obtain something like in the following 图片

How can I do that? Of course the values are dynamic Or is there a better approach? I have a word document generated from delphi code, containing text, tables and I need a formula to be entered for display. So I do not need the result (I know math :))

Thank you

So far, my solution is to create the ecuation in LaTeX format, like this:

Nrg1 = \frac{\sum_{i=1}^{15} riRi }{\sum_{i=1}^{15} ri } = \frac{2(4x4)+5(3x3)+3(2x2)+5(1x1)}{2x4+5x3+3x2+5x1} = \frac{94}{34} = 2,76

then copy it to clipboard, then paste it to http://formulasheet.com/#r%7Ced , "Render" it, then click on "Save Word", return to the word document and paste where I need my equation to be shown.

It works even if it is not completely "automatic".

If any of you have a better way I am waiting for your input. I would love to have a solution that does not force the user to make "manual" stuff.

perhaps you can use ArtFormulas, unit that i use in my project to calculate sample formule you can find it at

http://artsoft.nm.ru/works.html#formula

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM