Dyanmics NAV 2009 SP1 RTC: Problems with events of autom.
Tatevik
Member Posts: 28
hello !!!!
I used to have troubles with working events of the automation in the Dynamics NAV 2009 RoleTailored Client.
I hoped that this problem will be resolved in Dynamics NAV 2009 Sp1.
But unfortunately the same picture in the new version... Maybe I use events incorrectly, is there anybody who have ever try to work with simple excel automation events. Please advice... Anything ...
Ill be very grateful.
Beforehand thanks a lot. [-o< [-o< [-o< [-o< [-o< [-o< ](*,) ](*,) ](*,) :oops: :oops: :oops: :oops:
I used to have troubles with working events of the automation in the Dynamics NAV 2009 RoleTailored Client.
I hoped that this problem will be resolved in Dynamics NAV 2009 Sp1.
But unfortunately the same picture in the new version... Maybe I use events incorrectly, is there anybody who have ever try to work with simple excel automation events. Please advice... Anything ...
Ill be very grateful.
Beforehand thanks a lot. [-o< [-o< [-o< [-o< [-o< [-o< ](*,) ](*,) ](*,) :oops: :oops: :oops: :oops:
0
Comments
-
There are some restrictions when the events could be used. E.g. when the automation is running on Server/client (I can't remember on which one it must be to work... :oops: )0
-
thanks for your reply kine:
but what you mean by client/server? look I used simple excel automation with its events , which are working fine in classic Dynamics NAv client, but nothing happened when I used the same automation with the same event in the Dynamics NAV RoleTailored client.. what the difference does Dynamics NAV 2009 SP1 RTC does not support working with automation events......??
thank you0 -
look the problem is the following
on the RTC client I have action calling following trigger:
Button1 - OnAction()
{
IF NOT ISCLEAR(XlApp) THEN
CLEAR(XlApp);
IF NOT CREATE(XlApp,FALSE,TRUE) THEN
EXIT;
XlApp.Visible(TRUE);
XlWrkBk := XlApp.Workbooks.Add;
XlWrkSht := XlWrkBk.Worksheets.Add;
}
this part works fine excel workbook opens form RTC client but its event trigger does not work . see below:
XlApp::NewWorkbook(Wb : Automation "'Microsoft Excel 12.0 Object Library'.Workbook")
{
MESSAGE('newworkbook');
}
this event couldn't be cached.0 -
I think that the problem is, that you are creating the automation on the client (third parameter of the CREATE function), but when you are using automation on client, you cannot catch the events, because whole business logic is running on NST (on middle-tier), thus the event cannot be run from client.0
-
so does it mean that this problem is unresolved... ? there is no way to do it...?0
-
No, it means that you need to change the way how you are doing it to have it compatible with NAV 2009 SP1... ;-) But because I do not know what you want to do...
In SP1 you can create addins, thus you can create addin which will host excel directly on your page if you want and it will handle all what you need in some way... Or you can use webservices from excel to read/save data etc.0 -
thank you for you prompt reply ...
I'll try to find out more about add-ins of NAv 2009 Sp1 and how useful they can be for my problem... actually I used excel automation events for testing .. but in real I need to use my own automation ... with it's events...
anyway you're great thanks again.0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 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
