#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    4
    Rep Power
    0

    print image to text file


    I am trying to write some python code that will create a .doc text file that also has some images imbedded in it as well. Does anyone know of a python function/module/package that will allow me to write an image to a file?

    Thanks,
    Nghiem
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    You're best bet would probably be to use COM to access Word and make that do the work... but i've never really done much in this area! If you wana try this you're gonna from Mark Hammonds Win32all extension.

    http://starship.python.net/crew/mhammond/

    Edit: Theres a good intro to COM and Python in OReilly's Python Programming on Win32.

    Hope this helps,

    Mark.
    Last edited by netytan; January 15th, 2004 at 04:29 PM.
    programming language development: www.netytan.com Hula


IMN logo majestic logo threadwatch logo seochat tools logo