I have a a pogram to export the data in excel format. Everything is fine, but I have encountered a pop-up message as below when there are no data retrieved.
This message is for C/AL programmer:
An exception was raised in method rangne. THe OLE control or Automation server has returned error(HRESULT)-2147352567. The component did not provide the exception description.
Is there any way to write a message like "No data were found" instead of the system message. Appreciate it!
0
Comments
http://msdn.microsoft.com/en-us/library/dd355305.aspx
May be of some use!
In that case you should always check if name range exist or no before exporting values.
Follow my blog at http://x-dynamics.blogspot.com