win32 question in Python

Brad Johnson Brad.Johnson at ballardtech.com
Mon Jul 30 18:49:17 EDT 2007


Huang, Shun-Hsien <shuang <at> ercot.com> writes:

> 
but how do I copy a excel file into
> database table by using Python?
> 

I'm not sure if this helps, but you can access the Excel Automation model very
easily with:

import win32com.client

x1 = client.Dispatch("Excel.Application")

Now you can use the x1 object to access any of the properties and methods in the
Excel Automation model.




More information about the Python-list mailing list