Using Automation DataType with RTC

eagle_eye
Member Posts: 130
In the classic client, I have been using Excel Automation Datatype in order to do some exporting to Excel. I use this instead of the Excel Buffer specifically to make it easier to stick formulas into Excel Cells (like =(A2+B4+C6) / 3) instead of dumping a hard coded value into the Excel dump.
This runs great in the Classic client, but when I add it to a page and try to run it in the RTC I get the following error:
"This message is for C/AL programmers: Unable to create an instance of Automation Server Microsoft.Office.Interop.Excel.ApplicationClass with CLSID = 00024500-0000-0000-0c000-000000000046 Retrieving the Com class factory for component with CLSID {000024500-0000-0000-C000-0000000000046} failed due to the following error: 80070005.."
So ... is this something that no longer works when using the RTC?
This runs great in the Classic client, but when I add it to a page and try to run it in the RTC I get the following error:
"This message is for C/AL programmers: Unable to create an instance of Automation Server Microsoft.Office.Interop.Excel.ApplicationClass with CLSID = 00024500-0000-0000-0c000-000000000046 Retrieving the Com class factory for component with CLSID {000024500-0000-0000-C000-0000000000046} failed due to the following error: 80070005.."
So ... is this something that no longer works when using the RTC?
0
Comments
-
I have answered my own issue - it seems I can collect the cell information using the ExcelBuffer functionality. But I would be intersted in knowing if teh automation objects can be used with the RTC at all.0
-
Automation objects works just fine with the RTC and you can select whether you want them to be loaded on the Service Tier or the Client Tier.
CREATE(var) or CREATE(var, TRUE) - creates on Service Tier.
CREATE(var, TRUE, TRUE) - creates on the Client Tier.
I don't know whether this can be the problem.
I think there are some types (don't know which) which are not supported on RTC and events are not supported either.Freddy Kristiansen
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0
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