# 새탭에서 파일열기

**URL:** https://forum.developer.hancom.com/t/topic/1425
**Category:** 한글 오토메이션
**Created:** [3월 27, 2024, 12:53오전 UTC](https://forum.developer.hancom.com/t/topic/1425 "2024-03-27T00:53:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![user129](https://avatars.discourse-cdn.com/v4/letter/u/ecccb3/32.png) [@user129](https://forum.developer.hancom.com/u/user129)
#### Post date: [3월 27, 2024, 12:53오전 UTC](https://forum.developer.hancom.com/t/topic/1425/1 "2024-03-27T00:53:49Z")

</div>

안녕하세요

문서불러오기에서 새탭에서 불러오는 방법을 알 수 있을까요?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/hancom_dev_forum/original/1X/77c9470dd2435374b504e3a8f3e62c5f07389f71.png)

이 범주에서는 한글 오토메이션에 대한 다른 사용자의 기술 지원을 제공받을 수 있습니다.

1. 한글 오토메이션의 API 사용/연동은 [개발 가이드](https://developer.hancom.com/hwpctrl-hwpautomation/)를 참조하세요.
2. 일반 문의는 한글과컴퓨터 웹사이트의 [고객 지원](https://www.hancom.com/cs_center/csQnaWrite.do?gnb0=25&gnb1=78)을 이용하세요.
3. 개인정보가 포함되지 않도록 유의하세요. 게시글 또는 댓글에 개인정보가 포함된 내용이 있을 경우 게시물이 숨김처리 될 수 있습니다.

---

<div class="post-metadata">

### Author: ![kosohn](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.developer.hancom.com/kosohn/32/819_2.png) [@kosohn](https://forum.developer.hancom.com/u/kosohn)
#### Post date: [3월 27, 2024, 1:04오전 UTC](https://forum.developer.hancom.com/t/topic/1425/2 "2024-03-27T01:04:11Z")

</div>

vb.net코드인데  
도움이 될지 모르겠습니다.^^

```auto
Dim myHwp As New HwpObject
Dim myDocs As IXHwpDocuments = myHwp.XHwpDocuments
Dim myDoc As IXHwpDocument = myDocs.Add(True) 'False는 새 창에서, True는 새 탭에서 문서를 연다.
myDoc.Open("c:\temp\abc.hwpx", Nothing, Nothing)

```

---

<div class="post-metadata">

### Author: ![user129](https://avatars.discourse-cdn.com/v4/letter/u/ecccb3/32.png) [@user129](https://forum.developer.hancom.com/u/user129)
#### Post date: [3월 27, 2024, 1:10오전 UTC](https://forum.developer.hancom.com/t/topic/1425/3 "2024-03-27T01:10:28Z")

</div>

답변 감사합니다.

문서를 빈문서2에 추가 했다면  
빈문서1 탭  
빈문서2 탭

각각의 탭에 텍스트 쓰기 및 문서 불러오기/저장을 각각 할 수 있는 방법을 알고 싶습니다.

---

<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: [3월 27, 2024, 1:17오전 UTC](https://forum.developer.hancom.com/t/topic/1425/4 "2024-03-27T01:17:52Z")

</div>

안녕하세요 ^^  
가이드 문서의  
IXHwpDocuments, IXHwpDocument 개체를 확인하시고 사용하시면 될것 같습니다.

IXHwpDocuments의 api를 통해 생성된 모든 파일들에 대한 개체를 가지고 있으며, Active\_XHwpDocument 또는 FindItem을 통해 IXHwpDocument 를 가져와서 문서에 경로 등의 API를 이용 가능합니다.

IXHwpDocument 에서 SetActive\_XHwpDocument를 호출하여 Document에 대한 활성화 상태도 바꾸어

IHwpObject를 통한 오토메이션 제어도 가능합니다.

감사합니다 ^^
