Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== 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 ==== <code javascript> BaseDocument.Save(strPath, bAsCopy); </code>==== Visual Basic Script ==== <code vb> BaseDocument.Save strPath, bAsCopy </code>==== C++ ==== <code cpp> HRESULT hr = BaseDocument.Save(strPath, bAsCopy); </code>===== See Also ===== [[:scripting:api:base-document:start|IBaseDocument]] ~~NOTOC~~