# TableCreate Action 문의입니다.

**URL:** <https://forum.developer.hancom.com/t/tablecreate-action/1346>\
**Category:** 웹한글 기안기\
**Created:** [2월 20, 2024, 11:06오전 UTC](https://forum.developer.hancom.com/t/tablecreate-action/1346 "2024-02-20T11:06:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bart](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bart](https://forum.developer.hancom.com/u/bart)\
**Post date:** [2월 21, 2024, 12:48오전 UTC](https://forum.developer.hancom.com/t/tablecreate-action/1346/3 "2024-02-21T00:48:33Z")

</div>

안녕하세요.

@user16 님께서 말씀해주신것 처럼

“WidthType” 지정이 되지 않아 임의값 적용이 되지 않았습니다.

아래와 같이 적용하시면 될것 같습니다.

```javascript
const act = HwpCtrl.CreateAction('TableCreate');
const set = act.CreateSet();

act.GetDefault(set);

set.SetItem('WidthType', 2);
set.SetItem('HeightType', 1);

set.SetItem('Cols', 2);
set.SetItem('Rows', 1);

const colset = set.CreateItemArray('ColWidth', 2);
const rowset = set.CreateItemArray('RowHeight', 1);
const tablePropSet = set.Item('TableProperties');

colset.SetItem(0, 3000);
colset.SetItem(1, 20000);
rowset.SetItem(0, 1);
tablePropSet.SetItem('TreatAsChar', 1);

act.Execute(set);

```

---

_[View the full topic](https://forum.developer.hancom.com/t/tablecreate-action/1346)._
