How to give specific height in template rid in word creation

0
Here i have added templated Grid toshow the data in table format , and i have to fix the standard height to template , so template geid will not apply th eheigh css code , how to fix this issue
asked
2 answers
0

The issue is that the Template Grid height is fixed by Mendix, and your CSS (especially if it is inline) is not overriding it.


Assign a custom class to the Template Grid (for example, my-template-grid) and add the following CSS:


.my-template-grid,
.my-template-grid .mx-templategrid-content {
    height: auto !important;
    max-height: none !important;
}


Also, make sure the Scroll behavior property is set to None instead of Auto.


answered
0

hi,


In Word Document Generation (Docx module), CSS height does not apply to table rows.

Word templates are controlled by Word table properties, not web CSS.

That is why your Template Grid height CSS is not working.

Correct Way to Set Row Height

You must configure it inside the Word template (.docx) itself.

Steps:

  1. Open the Word template.
  2. Select the table row.
  3. Go to:

Table Layout → Properties → Row tab
  1. Check:

Specify height
  1. Set:
    • Height value (e.g., 1 cm)
    • Choose Exactly (important)

Do NOT use “At least”.

  • CSS from Mendix does not affect Word templates.
  • Height must be controlled in Word.
  • Template Grid only fills placeholders — layout is handled by Word.



answered