Excel Automation - Class of 'Range' MS Excel 14.0 Object Lib

DBGlover
Member Posts: 3
We are running NAV 2009 R2 Executables with 4.0 SP3 Objects. I am attempting to export a report to Excel and have a group of Cells in a Row Merged and Centered.
I am trying to use the 'Microsoft Excel 14.0 Object Library' with a Class of Range. I am receiving the following error message:
"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.7:{00020846-0000-0000-C000-000000000046}:'Microsoft Excel 14.0 Object Library'.Range. Check that the OLE control or Automation server is correctly installed and registered."
The rest of the Automation Classes from this Object Library I am using are working fine...... What am I missing? ](*,)
Thank You
Just for reference here is the code:
CREATE(XlRange);
MergedCells := XlRange.MergeCells(Cells);
Where XlRange is the Automation listed above.
Cells is a Code Concactenated Range of Excel Cells.
MergedCells is the Variable Parameter i am trying to end up with to pass to Excel.
I am trying to use the 'Microsoft Excel 14.0 Object Library' with a Class of Range. I am receiving the following error message:
"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.7:{00020846-0000-0000-C000-000000000046}:'Microsoft Excel 14.0 Object Library'.Range. Check that the OLE control or Automation server is correctly installed and registered."
The rest of the Automation Classes from this Object Library I am using are working fine...... What am I missing? ](*,)
Thank You
Just for reference here is the code:
CREATE(XlRange);
MergedCells := XlRange.MergeCells(Cells);
Where XlRange is the Automation listed above.
Cells is a Code Concactenated Range of Excel Cells.
MergedCells is the Variable Parameter i am trying to end up with to pass to Excel.
0
Comments
-
Hi,
If you look at the excel buffer table, you will see that Range is not created.
Only the XLApp is createdIF NOT CREATE(XlApp,TRUE,TRUE) THEN ERROR(Text000);
Range is always a part of something else like in the function CreateSheetXlWrkSht.Range(xlColID + xlRowID).Value := "Cell Value as Text"
or in ReadSheet functionXlRange := XlWrkSht.Range(GetExcelReference(5)).SpecialCells(11);
In BorderAround functionXlRange1 := XlWrkSht.Range(RangeName); XlRange1.BorderAround(1);
I hope this helps
Steve0
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