# 오토메이션 끼워넣기 교정부터, 형광펜 유지 옵션?

**URL:** <https://forum.developer.hancom.com/t/topic/1143>\
**Category:** 한글 오토메이션\
**Created:** [12월 7, 2023, 7:23오전 UTC](https://forum.developer.hancom.com/t/topic/1143 "2023-12-07T07:23:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuristar](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@nuristar](https://forum.developer.hancom.com/u/nuristar)\
**Post date:** [12월 7, 2023, 7:23오전 UTC](https://forum.developer.hancom.com/t/topic/1143/1 "2023-12-07T07:23:05Z")

</div>

안녕하세요 c#으로 오토메이션 하고 있습니다.

문서 끼워 넣기 할때 아래 처럼 하고 있는데요

```auto
hwp.HAction.GetDefault("InsertFile", hwp.HParameterSet.HInsertFile.HSet);
option = hwp.HParameterSet.HInsertFile;
option.Filename = filename; // 끼워넣을 파일 이름

option.KeepCharshape = 0; // 글자모양 유지 x
option.KeepParashape = 0; // 문단모양 유지 X
option.KeepStyle = 0; // 스타일 유지 X
option.KeepSection = 0; // 쪽 모 양 유지 X 

// 끼워넣기 옵션 - 글자모양 유지 체크되어 있으면
if (checkBox3.Checked) option.KeepCharshape = 1; // 글자모양 유지                    

// 끼워넣기 옵션 - 문단모양 유지 체크되어 있으면
if (checkBox4.Checked) option.KeepParashape = 1; // 문단모양 유지

// 끼워넣기 옵션 - 스타일 유지 체크되어 있으면
if (checkBox5.Checked) option.KeepStyle = 1; // 스타일 유지

// 끼워넣기 옵션- 쪽 모양 유지 체크되어 있으면
if (checkBox6.Checked) option.KeepSection = 1; // 쪽 모 양 유지 

Debug.WriteLine(index.ToString() + " : " + filename);
hwp.HAction.Execute("InsertFile", hwp.HParameterSet.HInsertFile.HSet); //실제 파일 끼워넣기
hwp.MovePos(3, 0, 0); // 문서 끝으로 이동

```

한글2020 버전에서는 잘 되는데… 2018버전에서는  
문서 교정 표시가 사라진다고 하는데…  
예를 들어 교정부호에서 두줄로 빨간색 긋는것… (조판부호 에서는 ‘[지움표 시작]’ 이라고 뜨는데요)

교정부호를 그대로 유지하지 위해서는 어떤 옵션을 추가해야 할까요?

---

<div class="post-metadata">

**Author:** ![nuristar](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@nuristar](https://forum.developer.hancom.com/u/nuristar)\
**Post date:** [12월 7, 2023, 8:48오전 UTC](https://forum.developer.hancom.com/t/topic/1143/2 "2023-12-07T08:48:56Z")

</div>

확인이 제대로 안된 상태에서 글을 올렸네요…  
정상적으로 됩니다. ㅠㅠ

---

<div class="post-metadata">

**Author:** ![bhjung](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.developer.hancom.com/bhjung/32/259_2.png) [@bhjung](https://forum.developer.hancom.com/u/bhjung)\
**Post date:** [12월 8, 2023, 1:09오전 UTC](https://forum.developer.hancom.com/t/topic/1143/3 "2023-12-08T01:09:35Z")

</div>

안녕하세요^^  
유지가 잘 된다고하니 다행이네요 🙂  
좋은 하루 되세요~!
