Formatting Image in Excel using win32com.client
问题 I am creating an excel spreadsheet using pythons win32com module excel client. I wanted to add a logo to my excel spreadsheet report. So far I have managed to add the picture: # Set a variable to an empty excel instance excel = win32com.client.Dispatch("Excel.Application") # Initialize a workbook within excel book = excel.Workbooks.Add() # Create sheet in book sheet = book.Worksheets(1) sheet.Pictures().Insert(r"G:\logos\Logo.jpg") I've been pouring through the web and I cannot seem to find a