Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-21 Thread Michael Langford
Office VBA is pretty much the same objects as the Office COM object. You use the same for both, so probably can do it in python very close to the same speed as vba --Michael On Wed, Apr 16, 2008 at 1:48 PM, Marc Tompkins <[EMAIL PROTECTED]> wrote: > Again with the forgetting to cc the lis

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-21 Thread Jeff Younker
On Apr 15, 2008, at 11:33 PM, Alan Gauld wrote: > Have you considered driving Word instead of OOo? > That way you leave the documents in their original format > and make the mods using COM from Python. I've used this approach before, and I whole heartedly suggest that you look into it. The Win3

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-21 Thread Hansen, Mike
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Marc Tompkins > Sent: Saturday, April 19, 2008 1:46 PM > To: tutor@python.org > Subject: Re: [Tutor] Hoping to benefit from someone's experience... > > > As you m

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-19 Thread Marc Tompkins
Just as a followup - I ended up using a Python script to recurse through the folders of files and, for each file found, extract the doctor/date/medical record number from the filename, then run a Word macro on the file to insert the header slug. If anyone ever needs to do something similar, or ju

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-17 Thread linuxian iandsd
just a thought ... there must be some way of using OpenOffice to convert your ORIGINAL word documents into HTML files ... then as html is a very nice & structured language that you can manipulate & modify with ease just by adding some tags inside where you want or wish this is also only if yo

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-16 Thread Jeff Johnson
I have done most major languages over the last thirty years of which FoxPro has been the last 16 years. I thought FoxPro was the greatest until Python. Now I code in FoxPro and Python and I wish I could just use Python. It's fun to code, everything works and it is a complete package without

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-16 Thread Kent Johnson
Marc Tompkins wrote: > It's funny - years ago I used to use Visual Studio and _enjoy_ it. I'm > spoiled now, I guess. Python does that to you. The only disadvantage I know to learning Python is that you won't want to code in anything else ever again :-) Kent ___

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-16 Thread Marc Tompkins
Again with the forgetting to cc the list... On Tue, Apr 15, 2008 at 11:33 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > Alternatively learn enough VBScript to do it all in Word itself That's exactly what I'm doing now. After mentioning in a previous email that formatting is important, I took

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-15 Thread Alan Gauld
"Marc Tompkins" <[EMAIL PROTECTED]> wrote > Moving away from the RTF horn of my dilemma, does anyone have any > experience > writing OO macros? Or know of any sites with more than ten lines of > documentation? I'm studying ooconvert itself, but that's only > getting me so > far. Have you con

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-15 Thread Marc Tompkins
On Tue, Apr 15, 2008 at 8:50 PM, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > Sorry, forgot to cc the list. > Actually, you cc'd the list with my previous post instead of your response to it. Here's what you sent me: > I don't know if this is the best way, but given that other guy's > suggesti

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-15 Thread Marc Tompkins
On Tue, Apr 15, 2008 at 7:10 PM, John Fouhy <[EMAIL PROTECTED]> wrote: > Is this any help to you: http://pyrtf.sourceforge.net/ > Not so much, because it only produces RTF - it doesn't help me pick apart the stuff I've already got. (It did cross my mind to try to create in pyRTF the same structur

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-15 Thread Marc Tompkins
On Tue, Apr 15, 2008 at 7:18 PM, <[EMAIL PROTECTED]> wrote: > Recommendation: Find a very old version of Word (Word 95) to generate > your RTF 'templates'. The older versions of Word generate much simpler > RTF that is forward compatible. > Excellent advice! Unfortunately, my case is a bit diffe

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-15 Thread python
Mark, Here's how we work with RTF: We create a Word document formatted exactly like we want with special markers (unique text) inserted in places where we want to programmatically add text. We save this document to RTF (this RTF becomes our template file), remove all the carriage returns and line

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-15 Thread John Fouhy
On 16/04/2008, Marc Tompkins <[EMAIL PROTECTED]> wrote: > Does anyone out have experience with: > - manipulating RTF files? Is this any help to you: http://pyrtf.sourceforge.net/ ? -- John. ___ Tutor maillist - Tutor@python.org http://mail.python.o

[Tutor] Hoping to benefit from someone's experience...

2008-04-15 Thread Marc Tompkins
Does anyone out have experience with: - manipulating RTF files? - or writing OpenOffice macros in Python? I need to pre-process approximately 10,000 medical reports so they can be imported into an EMR. (They were originally saved as Word .docs; I'd like to give hearty thanks to the authors of "