Re: [python-win32] Word Application saving to PDF

2019-10-09 Thread Tim Roberts
On Oct 8, 2019, at 9:58 AM, Holland, James via python-win32 wrote: > > I’m trying to open some rtf files to Word and then save as PDFs. > ... > Traceback (most recent call last): > > File "", line 15, in > doc.SaveAs2(output_dir + '/' + 'rtfTest.pdf', FileFormat = wdFormatPDF) >

[python-win32] Word Application saving to PDF

2019-10-08 Thread Holland, James via python-win32
I'm trying to open some rtf files to Word and then save as PDFs. I'm running Windows 10 65 bit -- Word 2016 is installed on my computer. Python 3.6.0 import os,os.path import img2pdf import win32com.client input_dir = "G:/MHOShare/MHO Staff/James Holland/TempDump/CindyTest/RTFtest" output_dir

Re: [python-win32] Word document with columns and page break. (Little Guy)

2011-07-11 Thread Zev Spitz
2011 14:46:42 + From: Little Guythe_little_...@gmx.com To: python-win32@python.org Subject: Re: [python-win32] Word document with columns and page break. Message-ID:20110709144643.26...@gmx.com Content-Type: text/plain; charset=utf-8 Mr. Roberts, Thanks for the assist. As I am not an expert

Re: [python-win32] Word document with columns and page break.

2011-07-11 Thread Tim Roberts
Little Guy wrote: I wish there was some sort of pictorial object, property, hierarchy for python-win32 somewhere as it may be a great assist to newbies to visually see what objects and properties go where. I think Java used to have something similar, at least I saw something like that in

Re: [python-win32] Word document with columns and page break. (Little Guy)

2011-07-11 Thread The Little Guy
...@nana10.co.il To: python-win32@python.org Subject: Re: [python-win32] Word document with columns and page break. (Little Guy) Message-ID: blu0-smtp12901b590f573959a41da3085...@phx.gbl Content-Type: text/plain; charset=UTF-8; format=flowed This isn't really something you should be searching

Re: [python-win32] Word document with columns and page break.

2011-07-09 Thread Little Guy
Mr. Roberts, Thanks for the assist. As I am not an expert at this, yet, it's a bit difficult knowing where to start looking for the information. Actually, I have most of the text processing portion of the code down, and omitted it from my, earlier, post so as to not overwelm the message.

[python-win32] Word document with columns and page break.

2011-07-07 Thread Little Guy
Hi, I'm trying to create a Python script using win32com that creates a Word 2003 document. This will become part of a little bigger script for work. After the document opens up, it is split into two columns, then text is pasted in, taking up both columns. After this is done, I'd like to

[python-win32] Word FormField types

2008-02-04 Thread Graessle, Glenn (FC COE)
Is there an import file that defines the FormField types symbolically? For example, Word Checkbox has the value of 71 for it's type. Glenn Graessle Flight Controls CoE Honeywell International, Inc. 23500 West 105th Street (M/D 42) Olathe, KS 66061 913-712-2645(phone/fax) 913-832-2345

Re: [python-win32] Word FormField types

2008-02-04 Thread Graeme Glass
On Feb 5, 2008 12:01 AM, Graessle, Glenn (FC COE) [EMAIL PROTECTED] wrote: Is there an import file that defines the FormField types symbolically? For example, Word Checkbox has the value of 71 for it's type. *Glenn Graessle* Flight Controls CoE Honeywell International, Inc. 23500 West

Re: [python-win32] Word FormField types

2008-02-04 Thread Kelie
Graessle, Glenn (FC COE glenn.graessle at honeywell.com writes: Is there an import file that defines the FormField types symbolically? from win32com.client import constants print constants.xlAscending print constants.wdFieldFormCheckBox ___

Re: [python-win32] Word Document manipulation (newbie)

2007-05-18 Thread Tim Golden
[EMAIL PROTECTED] wrote: I am trying to manipulate a word doc and realize that there are modules available but to date have been unable to get my paws on them. I have installed python 2.4.4 with pywin32-210.win32-py2.4. I have bought Mark Hammonds book which references such modules

Re: [python-win32] Word Document manipulation (newbie)

2007-05-18 Thread Mark Hammond
I am trying to manipulate a word doc and realize that there are modules available but to date have been unable to get my paws on them. I have installed python 2.4.4 with pywin32-210.win32-py2.4. I have bought Mark Hammonds book which references such modules wdclass.py and the use of

[python-win32] Word COM, then paste into word app.

2006-04-06 Thread James Carroll
I would like to try to do something with wxPython that I've seen a commercial app do... The app was a statistical analysis program, and it would display results in a richly formatted way, then would paste into word perfectly. I'd like to show a read-only, but dynamically generated small word

[python-win32] Word AddPicture problem

2005-06-18 Thread kimwaic888-pythonwin32
I am trying to insert a bunch of picture files into a newly created Word document. I am encountering trouble setting the Height and Width of the inserted picture. The code is really very simple: ### ...set up list_of_doc_files_to_create wordApp = Dispatch(Word.Application) for y in

Re: [python-win32] word

2005-04-15 Thread Gabriel Genellina
At Thursday 14/4/2005 15:33, ryan pinto wrote: wordApp.CommandBars.FindControl(Id=23).Execute Remember that, in Python, you must use () to invoke a function, even if it has no arguments. Gabriel Genellina Softlab SRL ___ Python-win32 mailing list

Re: [python-win32] word

2005-04-15 Thread Michel Claveau
Hi ! I send again (my previous message, 14 april, not having passed) --- Hi(hi-hi-hi) The information what you want is worth only one million euros. But it is my philantropic evening. Therefore, look : import win32com from