Param

Method

Event

 

 

GetDocumentSizeEx

현재 문서와 문서에 포함된 첨부 파일들의 크기를 합한 값을 구합니다.

 

Syntax

    HRESULT GetDocumentEx(
    long pVal,
    long flag
    );

 

Parameters

pVal

[out, retval] 현재 문서의 크기(설정한 범위의 첨부 파일 크기 포함)를 얻습니다.

flag

[in] 크기를 계산할 첨부 파일의 범위를 지정합니다.

 

0

로컬파일과 외부파일 모두 계산

1

로컬파일만 계산

2

외부파일만 계산

3

EncodeFileScope=Local이고 MIMEEncodeIncludeURL 설정 시 해당 URL 이미지도 계산
7.0.3.4 부터 지원

 

Return Values

항상 : 0

 

Sample Codes

VBScript

dim object
Set object = document.editForm
object = object.Wec.GetDocumentSizeEx(0)
If object > 4096 Then
MsgBox "4kb 용량을 초과하였습니다."
End If
...

 

JavaScript

var object = document.getElementById('Wec');
var size = object.Wec.GetDocumentSizeEx(0);
if(size > 4096){
alert("4kb 용량을 초과하였습니다.");
}
...

 

See Also

GetDocumentSize