Hello everybody,
I am getting the following error on using excel automation. I am trying to save an excel workbook onto a location.
"The call to member SaveAs failed.Microsoft Office Excel returned the following message:
SaveAs method of Workbook class failed."
Does anyone have any idea how to resolve it? :?:
0
Comments
Code example:
C/AL Globals (of your MS-Excel Library):
kind regards,
winfy
Thanks for ur reply.
I tried ur code but am having the same error.
Can you advise
Thanks
In fact,it was not just about the permission issue.If you have a specified a name with invalid characters will give you the same error.
Thnks
XlWrkBk.SaveAs(FilePath+'\'+FileName,-4143);
XlWrkBk.Close;