473,320 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Re: embed python in ms-word?

in fact, during my work, I often write documnets in ms-word. But the
doc has many numbers in it, which need to be calculated and to be
modified frequently.

Is there a method to write a ms-word add-in, so that
1.I can type in the calculation steps in some program language,
please have a look at http://blender.bokee.com/inc/word_add_in1.jpg

2.then the result (here, it is 8) is shown in the doc when I close this window?
please have a look at http://blender.bokee.com/inc/word_add_in2.jpg

3.when I double-click the result 8, I can view/edit the code again

4.the code for calculation is stored in DOC file too, I can change it later

mathtype equation is a kind of such thing, but only for displaying
nice equation

I don't think vba is a good answer, the main reason is: the vba code
has an incompact link with its result in the documnet
Sep 6 '08 #1
1 1864
oyster schrieb:
in fact, during my work, I often write documnets in ms-word. But the
doc has many numbers in it, which need to be calculated and to be
modified frequently.

Is there a method to write a ms-word add-in, so that
1.I can type in the calculation steps in some program language,
please have a look at http://blender.bokee.com/inc/word_add_in1.jpg

2.then the result (here, it is 8) is shown in the doc when I close this window?
please have a look at http://blender.bokee.com/inc/word_add_in2.jpg

3.when I double-click the result 8, I can view/edit the code again

4.the code for calculation is stored in DOC file too, I can change it later

mathtype equation is a kind of such thing, but only for displaying
nice equation

I don't think vba is a good answer, the main reason is: the vba code
has an incompact link with its result in the documnet
I don't know what you mean with the last sentence - but I still think
VBA is the answer. There is no other way to write a plugin or some such
for word than using COM, and VB *is* COM. So whatever you can do in
Word, it's exposed in VBA. Bringing python into the mixture is just
creating a lot of hassle.

Automating word with Python is a different thing - that seems to be
popular and powerful.

Diez
Sep 6 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: disgracelands | last post by:
I've been looking at using python and it's been going fairly well so far, i can call C from python and python from C fine but now i've hit a snag and i'm wondering how you guys have got around it....
11
by: Robert Ferber | last post by:
Hi, I'm a PHP-programmer who evaluates Python for a new project. I really like a lot of concepts of Python, especially the shell, but there is one great feature of PHP which I don't know how to...
11
by: Anna | last post by:
Hi all. I want to embed the EMBED tag in the object tag. I understood that I need to provide a PARAM tag inside the OBJECT whose value will hold the content of EMBED src attribute, but after...
2
by: Lloyd | last post by:
Hi After researching on Extending and Embedding it appears Extending is favoured greatly over Embedding. I've tested Boost::Python successfully in a test project but have run into an issue. I...
7
by: Heiko Niedermeyer | last post by:
Sorry for the fuzzy subject... Currently I'm writing a little programm to extract some chemical information out of a text file, and then present it in a pleasant way. The Extraction works so...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.