WS using OCX/Excel - "Callback functions are not allowed"

RnR
Member Posts: 21
Hi,
My webservice is calling a codeunit. Within this codeunit there is a lot of calculations and one of them needs to use the PMT function (Pmt(interest_rate,number_payments,PV,FV,Type)).
I've tried to access this function through an OCX (finsamp) and through Excel automation, and both of them gives med the following error message:
"Callback functions are not allowed"
I've read about Automation here: http://msdn.microsoft.com/en-us/library/ee909565.aspx
Do I really have to create a .Net component which can calculate the pmt and install that on the server? No other way to accomplish this task?
Cheers
Rnr
My webservice is calling a codeunit. Within this codeunit there is a lot of calculations and one of them needs to use the PMT function (Pmt(interest_rate,number_payments,PV,FV,Type)).
I've tried to access this function through an OCX (finsamp) and through Excel automation, and both of them gives med the following error message:
"Callback functions are not allowed"
I've read about Automation here: http://msdn.microsoft.com/en-us/library/ee909565.aspx
Do I really have to create a .Net component which can calculate the pmt and install that on the server? No other way to accomplish this task?
Cheers
Rnr
0
Comments
-
I've now created a class library in .net (cs) and registered the component on the 2009 application server.
Tried to call the calculation within the COM, but same message:Callback functions are not allowed
Have tried all ClassInterfaceTypes in cs, called the inteface instead of the class ++. Same error message.
I would be very happy if somebody can point me in the right direction here0 -
Hi,
I guess the problem is that the automation is requesting the UI, because Excel automations starts Excel.
Check out this link: http://msdn.microsoft.com/en-us/library/dd301080.aspx0 -
with some help from wolfram alpha I wrote the calculations in c/al. not pretty...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