Encoding

Property of IDocumentData

Document encoding

Read-Write Property of type long

JavaScript

var nEncoding = DocumentData.Encoding;
DocumentData.Encoding = nEncoding;

Visual Basic Script

nEncoding = DocumentData.Encoding
DocumentData.Encoding = nEncoding

C++

long nEncoding;
HRESULT hr = DocumentData.get_Encoding(&nEncoding);
hr = DocumentData.put_Encoding(nEncoding);