Issue in Excel Buffer
navuser1
Member Posts: 1,334
Dear Sir,
The following issue is occurred while users are trying to export data using Excel Buffer Table.
A call to Microsoft.Dynamics.Nav.Integration.Office.Excel.ExcelHelper.CallOpen failed with this message: Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)).
But it's working fine in the NAV tier (system).
How to solve it.
Kindly reply.
The following issue is occurred while users are trying to export data using Excel Buffer Table.
A call to Microsoft.Dynamics.Nav.Integration.Office.Excel.ExcelHelper.CallOpen failed with this message: Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)).
But it's working fine in the NAV tier (system).
How to solve it.
Kindly reply.
Now or Never
0
Answers
-
All users or some users ?
If "some users", have you tried to do a quick repair of Office in their machines ?0 -
Do you have Office / Excel installed on the user PC? Does it have the same bintess as the OS/ NAV client? (ie mixed 32bit Office on 64bit OS)Slawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;0 -
All users or some users ?
If "some users", have you tried to do a quick repair of Office in their machines ?
All users are facing the same, but when I do the same in NAV Server, it's working fine.
I have repaired the MS Office several times, but it does not solve my issue.Now or Never0 -
Slawek_Guzek wrote: »Do you have Office / Excel installed on the user PC? Does it have the same bintess as the OS/ NAV client? (ie mixed 32bit Office on 64bit OS)
All are same version.Now or Never0 -
-
Thanks for your replies.....
I have noticed that the file is generated on the client PC silently but not able to open the same............Now or Never0 -
(Client) Systems is stuck in the below line of Excel Buffer Table.
XlWrkBk := XlHelper.CallOpen(XlApp,FileNameClient);
Now or Never0 -
-
Can you open it on the client machine directly from File Explorer?Regards,
Yury0 -
Is it possible to compile Excel-related objects in user machine environment? As Slawek already said, it's probably different versions of libraries.Regards,
Yury0 -
Is it possible to compile Excel-related objects in user machine environment? As Slawek already said, it's probably different versions of libraries.
Client has no developer Environment installed. BTW, client does not able to compile the Excel Buffer Table because client has few/one missing library..Now or Never0 -
The problem is if the machine has a newer version of Office and has been downgraded. NAV will call the latest version of the Office components since downgrading will not remove any of the settings in the reg keys.
You will need to go to regedit.exe and remove any keys related to office:
HKEY_CLASSES_ROOT\TypeLib\
Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 252 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions


