Skip to content

importing module successfully, but when implementing in code showing error #652

@aqifilyaskhan

Description

@aqifilyaskhan

I don't know why am getting this errors:

Importing module & you can see its importing successfully

But when when implementing in code showing error

If the module doesn't exist so it shouldn't be visible on Terminal

from docx import Document
from docx.shared import Inches
from docx.shared import Cm
from docx.enum.table import *
#from docx.enum.table import WD_ROW_HEIGHT_RULE

table = document.add_table(rows=1, cols=2)
table.style = 'Medium Shading 1 Accent 2'
table.rows[0].height_rule = WD_ROW_HEIGHT_RULE.EXACTLY

#rest of my rows & column code here

1
2

i asked this question twice on stackoverflow but no-one answered

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions