NAS - freezes on processing oofice automation

rixrix
Member Posts: 121
Hello,
Did someone of you encountered such problem ?
I have one job runned by jub scheduler wich does some oofice things (using dbolewrap.ocx)
A) When I run it as normal user - everything is OK.
When I am logged to win server with NAS credentials and run NAS from command line - everything is OK
C) But when NAS is runned as service, the task freezes as "Processing"
And I dunno what happened ....
And can't debug it, because of
Thank you
P.S. It frreezes on this function .. it is very first function using OLE wrapper....
OW.CreateObjectByName (pvOoClass, 'com.sun.star.ServiceManager')
? Does OOfice needed to be run under "real logged" user ??? or something ?
Did someone of you encountered such problem ?
I have one job runned by jub scheduler wich does some oofice things (using dbolewrap.ocx)
A) When I run it as normal user - everything is OK.

C) But when NAS is runned as service, the task freezes as "Processing"
And I dunno what happened ....
And can't debug it, because of

Thank you
P.S. It frreezes on this function .. it is very first function using OLE wrapper....
OW.CreateObjectByName (pvOoClass, 'com.sun.star.ServiceManager')
? Does OOfice needed to be run under "real logged" user ??? or something ?
0
Answers
-
Microsoft does not support runnign Office automation in this manner. However this mayhelp you out.
http://theether.net/download/Microsoft/kb/288367.htmlThere are no bugs - only undocumented features.0 -
Finally I found the problem / solution
After 1 day trying everything a found out that problem is with "first time registration wizard" of open office.
I didin't even think about it because I ran the wizard logged as user used by "service" so I thought everything is fine.
But it wasnt. It seems that service doesn't use all profile info of user and oo dinn't know that wizard was already ran.
What helped was applying small code which disabled wizard for all users
Downloaded here: http://wiki.services.openoffice.org/wik ... ion_Wizard
Thank you0 -
So ... I am sorry but there are problems again :-(
It works just on one NAS and not always ...
On other NASes we have it doesn't work at all0 -
So finally solved
1. Add -headless -nofirsttimestartwizard options to all LocalServer32 keys in the registry which are used to identify what to run for ServiceManager Object
2. After using OOfice functions you have to destroy Desktop Object, because restarting NAS causet to freeze it when dbolewrapper tries to run soffice.exe next time
Everything works now0
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