Param

Method

Event

 

 

GetDocumentSize

현재 문서와 현재 문서에 포함된 로컬(Local) 파일의 크기를 모두 합한 값을 구합니다.

 

Syntax

    HRESULT GetDocumentSize(
    long* pVal
    );

 

Parameters

pVal

[out, retval] 현재 문서의 크기(포함된 로컬 파일의 크기도 포함)를 얻습니다.

 

Return Values

항상 : 0

 

Sample Codes

VBScript

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

 

JavaScript

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

 

See Also

GetDoucumentPath