# 웹한글기안기 SetTextFile API 문의

**URL:** <https://forum.developer.hancom.com/t/settextfile-api/2613>\
**Category:** 웹한글 기안기\
**Created:** [6월 25, 2025, 6:42오전 UTC](https://forum.developer.hancom.com/t/settextfile-api/2613 "2025-06-25T06:42:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnlals7841](https://avatars.discourse-cdn.com/v4/letter/g/9de053/32.png) [@gnlals7841](https://forum.developer.hancom.com/u/gnlals7841)\
**Post date:** [6월 25, 2025, 6:42오전 UTC](https://forum.developer.hancom.com/t/settextfile-api/2613/1 "2025-06-25T06:42:37Z")

</div>

웹한글기안기 SetTextFile API 실행 시  
결과가 이상하게 조회되어 관련 현상 문의드립니다.

10.80.0.1829 버전 및 한컴포럼 예제 사이트([웹한글 기안기 예제 | 한컴디벨로퍼](https://webhwpctrl-example.cloud.hancom.com/webhwp-example))에서는 정상적으로 보이고 있습니다.

 ![스크린샷 2025-06-25 오후 3.40.21](https://us1.discourse-cdn.com/flex016/uploads/hancom_dev_forum/original/2X/d/db356bc9d132183547836851bd52e83dd2025473.png)

* * *

10.80.0.2782 버전에서는 내용이 압축되어 보여지고 있습니다.

 ![스크린샷 2025-06-25 오후 3.41.17](https://us1.discourse-cdn.com/flex016/uploads/hancom_dev_forum/original/2X/5/5d305307eaa8e726c736696e5fb0fc6049d61937.png)

* * *

[테스트 방법]

1. 누름틀 생성 - 필드명: _F\_CONTENTS_
2. 아래 명령어대로 실행

```auto
let temp = ` <p>
    <p style="line-length : 4.76mm; font-family: 굴림체; font-size: 12pt; margin-top: 0mm; margin-bottom: 0mm;"> </p>
    <p
        style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
        1. 귀 기관의 무궁한 발전을 기원합니다.</p>
    <p
        style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
        &nbsp;</p>
    <p
        style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
        신규 임용 예정자에 대해 전력조회를 요청드리오니 협조를 부탁드립니다.</p>
    <p
        style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
        &nbsp;</p>
    <p
        style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
        &nbsp;<b>가. 대상자 개요</b>&nbsp;</p>
    <p
        style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
        &nbsp;&nbsp;○ 응시직군 : 000</p>
    <p
        style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
        &nbsp;&nbsp;○ 성명/생년월일 : 00 / 0000.00.00.</p>
    <p
        style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
        &nbsp;</p>
    <p
        style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px; display: block; overflow-wrap: break-word;">
        <b>&nbsp;나. 회신 협조요청 기한:</b>&nbsp;'00.00.00.(목)까지</p>
    <p
        style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px; display: block; overflow-wrap: break-word;">
        &nbsp;</p>
    <p
        style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px; display: block; overflow-wrap: break-word;">
        &nbsp;<b>다. 회신방법:</b>&nbsp;붙임 양식을 작성하여 공문 또는 이메일() 회신</p>
    <p
        style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px; display: block; overflow-wrap: break-word;">
        &nbsp;</p>
    <p
        style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px; display: block; overflow-wrap: break-word;">
        붙임: (양식) 전력 조회 회보서 1부. &nbsp;끝.</p>
    </p>`;

HwpCtrl.MoveToField('_F_CONTENTS_',true,true,false);

HwpCtrl.SetTextFile(temp,'HTML','insertfile');

```

웹한글기안기 SetTextFile API 이슈인지  
아니면 API에 첨부하는 html내용이 문제인지 확인 부탁드립니다.  
html 내용의 경우 뷰어로 볼때 틀어져서 보이지 않고 있습니다.

---

<div class="post-metadata">

**Author:** ![dev.community](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.developer.hancom.com/dev.community/32/488_2.png) [@dev.community](https://forum.developer.hancom.com/u/dev.community)\
**Post date:** [7월 1, 2025, 2:56오전 UTC](https://forum.developer.hancom.com/t/settextfile-api/2613/2 "2025-07-01T02:56:12Z")

</div>

안녕하세요. 한컴디벨로퍼입니다.

현재 담당자가 내용을 확인하고 있습니다. 조금만 기다려 주세요.

---

<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:** [7월 1, 2025, 7:34오전 UTC](https://forum.developer.hancom.com/t/settextfile-api/2613/3 "2025-07-01T07:34:39Z")

</div>

안녕하세요.

증상 확인하였습니다. 내부 버그인것 같습니다.

다음 패치때 수정 반영하겠습니다.

---

<div class="post-metadata">

**Author:** ![gnlals7841](https://avatars.discourse-cdn.com/v4/letter/g/9de053/32.png) [@gnlals7841](https://forum.developer.hancom.com/u/gnlals7841)\
**Post date:** [7월 2, 2025, 12:26오전 UTC](https://forum.developer.hancom.com/t/settextfile-api/2613/4 "2025-07-02T00:26:08Z")

</div>

안녕하세요 관리자님

고객사 안내를 위해  
수정 버전이 대략적으로 언제쯤 배포되는지 알 수 있을까요?

---

<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:** [7월 2, 2025, 1:17오전 UTC](https://forum.developer.hancom.com/t/settextfile-api/2613/5 "2025-07-02T01:17:02Z")

</div>

정확한 일정은 말씀드릴 수 없지만  
대략 9월 정도 예상하고 있습니다.
