Hi,
I’m using Words for C++, and got System::ArgumentException: An invalid SaveFormat for this options type was chosen.
.
Any docx file with the following code will fail.
void WordEncrypt() {
auto doc = System::MakeObject<Aspose::Words::Document>(u"Borders.docx");
auto opt = System::MakeObject<Aspose::Words::Saving::DocSaveOptions>();// Aspose::Words::SaveFormat::Docx);
opt->set_SaveFormat(Aspose::Words::SaveFormat::Docx);
opt->set_Password(u"111");
doc->Save(u"tutorial-0.docx", opt);
}