fork(1) download
  1. from win32com.client import Dispatch
  2.  
  3. excel = Dispatch("Excel.Application")
  4. excel.Visible = 1
  5. excel.Workbooks.Add()
  6. excel.ActiveSheet.Cells(1,1).Value = "Hola SQLeros"
  7. excel.ActiveSheet.Cells(1, 1).ClearComments()
  8. excel.ActiveSheet.Cells(1, 1).AddComment()
  9. excel.ActiveSheet.Cells(1, 1).Comment.Text(Text = 'Comentario generado por sqleros.com.ar')
  10. excel.ActiveWorkbook.SaveAs("pruebaSQLeros.xls")
  11. excel.Quit()
Runtime error #stdin #stdout 0.09s 10840KB
stdin
Standard input is empty
stdout
Standard output is empty