[Tutor] Edit a Word document programmatically CORRECTION Open not
open
bob gailer wrote:
Brian C. Lane wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
URBAN LANDREMAN wrote:
Good morning,
I'm trying to write some Python code to programmatically do
Good morning,
I'm trying to write some Python code to programmatically do a Find and Replace
of a string within a Microsoft Word document.
Any suggestions on where I could look to find how to do such a function?
Thank you.
Urban Landreman
___
k on the option of choice.
Any suggestions of a model I can adapt to accomplish this?
Thanks.
Urban Landreman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ot;Ohio","Columbus")
oFileName = "c:\PythonExport.csv"
ofile = open(oFileName,"w")
ofile.write("State Code,State info"+"\n")
for stateCode in states.keys():
stateInfo=states[stateCode]
ofile.write(stateCode+","+s
xxx.py in the same folder, the
system finds that file.
The file xxx.pyd has security numeric value 755, so the system should be
able to find it.
I'm baffled.
Any suggestions of what my be causing the system to not find xxx.pyd?
Thanks.
Urban Landreman
_
:"))
gallon_price = float(raw_input ("Enter you cost per gallon:"))
make = "Honda"
model = "Accord"
##
print make, model, "mileage is", mpg, "miles per gallon"
print "Total trip cost is US$" , distance * gallon_price/mpg
Others who a
esult.
I have checked several of the tutorials and FAQ sites and the impression
that's given is that this functionality is quite simple, so I assume that
I'm just missing one small step.
Any suggestion would be much appreciated.
Thank you.
Urban Landreman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor