You're missing the 2nd parameter -- whether to save as stationery or not -- and the next parameter must be a string.
So you need something like this:
myDoc.save(myDocPath+"/"+myDocName, false, "any comment", true);
You're missing the 2nd parameter -- whether to save as stationery or not -- and the next parameter must be a string.
So you need something like this:
myDoc.save(myDocPath+"/"+myDocName, false, "any comment", true);