Table Style Keyerror: U"no Style With Name 'table Grid'"
I trying to insert a table via python-docx but it give the error code is: #-*-coding:utf-8-*- import re import time import datetime import sys import os import csv from docx impo
Solution 1:
Your document does not have the 'Table Grid' style defined in it. The styles that appear to be "built-in" in Word are actually not added to the document until the first time they are used.
You can learn more about the behavior of these so-called "latent styles" by reading the related part of the python-pptx
documentation here:
http://python-docx.readthedocs.io/en/latest/user/styles-understanding.html
and here:
http://python-docx.readthedocs.io/en/latest/user/styles-using.html
Post a Comment for "Table Style Keyerror: U"no Style With Name 'table Grid'""