Forum: Ruby on Rails How to use MS Word features from Rails app running as servic

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3a500fac8acc86481b9f3d78ebdcd1f5?d=identicon&s=25 Yash (Guest)
on 2007-07-02 17:18
Hi,

I am using features of MS Word 2003 on Win XP in my rails application.
The server has Win XP

installed. I am able to open a document, save as HTML etc. if I run the
app using

mongrel_rails start ... on command prompt.
I use the Win32OLE support for Ruby:
doc = WIN32OLE.new('Word.Application')

However, at the deployment site, I have configured the app to run as a
Windows Service using the mongrel:
mongrel_rails service::install -N EDiscussions -c appdir -p 80 -e
production

The application runs fine except for the actions that use Word features.
Debug statements indicate that the program does not get past the line:
doc = WIN32OLE.new('Word.Application')

The service is configured to run using Local System account and is
allowed to interact with the desktop.

Can someone suggest what I might be missing here? How do I get it to
work while running the app as a service?

Thanks,
Yash
This topic is locked and can not be replied to.