postsaurav,
Can i check the datatype of object to be used ? Initially when I used>> Microsoft Excel 12.0 Object Library & the Class (Workbook or WorkBookS)
I got this error >>
This message is for C/AL programmers:
Could not create an instance of the OLE control or Automation server identified by
GUID={00020813-0000-0000-C000-000000000046}
1.6:{00020819-0000-0000-C000-000000000046}:'Microsoft Excel 12.0 Object Library'.Workbook.
Check that the OLE control or Automation server is correctly installed and registered.
sorry for the late reply..
1.) Variable: XlApp is Automation, Microsoft Excel Object 12.0 with Classes= _Application ?
2.)Hit an error when i place my code first line of my delete function in my reports Post Report() still same Error This message is for C/AL Programmers...
2.)Hit an error when i place my code first line of my delete function in my reports Post Report()
still same Error This message is for C/AL Programmers...
Put the code not in report but in the table at the start of function.
Comments
I hope this is what you are looking for -
http://saurav-nav.blogspot.in/2013/02/export-to-excel-delete-un-used-sheets.html
Let me know if you have any issues.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
almost there.. but i got an error:
can u active the debugger and send me the details at which point you are getting this error.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
Can i check the datatype of object to be used ? Initially when I used>> Microsoft Excel 12.0 Object Library & the Class (Workbook or WorkBookS)
I got this error >>
This message is for C/AL programmers:
Could not create an instance of the OLE control or Automation server identified by
GUID={00020813-0000-0000-C000-000000000046}
1.6:{00020819-0000-0000-C000-000000000046}:'Microsoft Excel 12.0 Object Library'.Workbook.
Check that the OLE control or Automation server is correctly installed and registered.
Did excel and Navision are installed on the machine?
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
can you try using -
as first line in the function and let me know the results.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
sorry for the late reply..
1.) Variable: XlApp is Automation, Microsoft Excel Object 12.0 with Classes= _Application ?
2.)Hit an error when i place my code first line of my delete function in my reports Post Report()
still same Error This message is for C/AL Programmers...
>> CREATE(XlApp,TRUE);
Put the code not in report but in the table at the start of function.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page