Problem to save excel file with NAS

Lorentz_
Member Posts: 3
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
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
-
I think this is the problem with the Desktop folder that needs to be created, please see the following post for more details...
viewtopic.php?t=414230 -
the problem was the desktop folder...
Thanks a lot!0 -
vaprog wrote:Lorentz_ wrote:No errors occurred with manually run using the same user.
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.0 -
Kishorm wrote: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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions