My goal is to try to have the same functionality as the usual Microsoft Windows "Save As" common dialog.
So, I use this aaApi_SaveDocumentDlg2 function.
But, each time I press "Save" button, I get a "Not found" message box.
I've not found any explanation relative to this error.
So, could you help, please ?
Thank you.
Please post the snippet of your code so that we have context when the "not found" occurs.
Hello Dean,
Thank you for your answer.
My source code is a bit complex but here is the call I made for aaApi_SaveDocumentDlg2:
{ wchar_t tcarPath[FILENAME_SIZE]; aaApi_SaveDocumentDlg2(NULL, NULL, AASAVEDOCDLG_HIDESAVEINAPP|AASAVEDOCDLG_NO_LAUNCH_APP|AASAVEDOCDLG_NO_CHECKOUT|AASAVEDOCDLG_ALLOW_OVERWRITE|AASAVEDOCDLG_USEFORMATBTN, &di.lProjectId, &di.lDocumentId, L"c:\\temp\\test.xlsx", name, NULL, tcarFile, tcarFormat, callbackFormat, (LONG_PTR) &tFormats, tcarPath, SIZEOF(tcarPath)));
Itis possible to have an idea of what causes the message box error ?
Sorry that I did not respond sooner. work has been quite heavy. The two things that stand out to me are &di.lProjectId which may give the address of the struct rather than the address of the position in the struct. you may want to assign that value to a LONG then pass the pointer to it. I always pass NULL for the call back function and parameters to simplify things. You may want to simplify the flags to see if one of them is causing it. Just make one of these changes at a time to see what may be the cause.
)
Hello I'm having the same issue, was this ever resolved?
my issue was, i was renaming the file on AADOCCREM_VALIDATE_SAVEAS_DOCFILE, when I shouldn't have...