====== Save ======
Method of [[:scripting:api:base-document:start|IBaseDocument]]
===== Description =====
Saves document under given path. If path is empty saves on current file name
===== Parameters =====
* [[scripting:api:data-type:BSTR|BSTR]] **strPath** = %%""%% (optional)
* [[scripting:api:data-type:VARIANT_BOOL|VARIANT_BOOL]] **bAsCopy** = VARIANT_FALSE (optional)
===== Syntax =====
==== JavaScript ====
BaseDocument.Save(strPath, bAsCopy);
==== Visual Basic Script ====
BaseDocument.Save strPath, bAsCopy
==== C++ ====
HRESULT hr = BaseDocument.Save(strPath, bAsCopy);
===== See Also =====
[[:scripting:api:base-document:start|IBaseDocument]]
~~NOTOC~~