Hello
I get the error to save the file with excel automation using the NAS.
This message is for C/AL programmers:
The call to member SaveAs failed. Microsoft Office Excel returned the following message:
Errore nel metodo SaveAs per la classe Workbook. (Error in the Workbook SaveAs method to the class)
No errors occurred with manually run using the same user.
To open and fill the file I'm using the standard functions in the Excel Buffer table.
To save the file I added this:
XlWrkBk.SaveAs(PathFileName);
XlWrkBk.Close(FALSE);
XlApp.Quit;
CLEAR(XlApp);
Thank's for the help!
Lorenzo
0
Comments
Did you try to save to the same location as NAS tries to save to?
viewtopic.php?t=41423
Thanks a lot!
How did you do that, not having a desktop folder for the user?
It's not a desktop folder for the user but something to do with the "windows stations" - if you follow the link within the link I mentioned earlier you can read more about it.
I should have noted before that the issue can not be related to the NAS service account, since NAS needs to be able to logon to NAV as windows user and thus cannot use the local system account.
Anyway, according to http://support.microsoft.com/kb/257757/EN-US (Considerations for server-side Automation of Office) the NAS service account needs to have a desktop folder too.