First of all thanks stackoverflow users. I got to know how i can write result into a file.
with open('Output\\Result.doc', 'a') as fout:
result = str(args[0]) + " : Fail"
fout.write("\n")
fout.write(result)
Now, i wanted to know is it possible to create a table in word doc using python and writing result into it.?or if the table exists, how can i write result into it? first result 1 row and columns , second result 2 row and column so on.
.docx
is almost certainly harder (especially for tables), and I'm guessing.doc
is substantially harder than that. – Kyle Strand May 8 '13 at 3:58