Home All Groups Group Topic Archive Search About


Author
12 May 2005 8:20 AM
chinlj4
Hi all,

Is there a way to open a Word document in read-only mode through vbscript?

I have a working vbscript to automatically print Word documents into .ps
file followed by converting it to a .pdf file using ghostscript running in
W2K Standard. However, if the script was called from a NT service, embedded
objects will not be printed out but only the place holder with a "X" icons
were printed, same as when IE can't display an image. Images of these
embedded object can be printed correctly if the script was running in a
logged in session.

I had tried to tweak the security setting using "dcomcnfg" utility without
any success. Is there a solution for this? I know MS does not support
server-side automation using Office.

Any help will be appreciated very much. Thank you.

Author
14 May 2005 1:13 AM
Jim Vierra
You can't run most office components from a service.  Use the scsheduler and
set interactive with good account credentials.

You will not easily be able to get around the security.  Changing DCOM for
word won't help only running the service under a user account and in
interactive mode will work but many objects can't be proxied.
--
Jim Vierra

Show quote
"chinlj4" <chin***@discussions.microsoft.com> wrote in message
news:C8047549-F5F9-4FBB-B8C6-51EBC2BFD2B9@microsoft.com...
> Hi all,
>
> Is there a way to open a Word document in read-only mode through vbscript?
>
> I have a working vbscript to automatically print Word documents into .ps
> file followed by converting it to a .pdf file using ghostscript running in
> W2K Standard. However, if the script was called from a NT service,
> embedded
> objects will not be printed out but only the place holder with a "X" icons
> were printed, same as when IE can't display an image. Images of these
> embedded object can be printed correctly if the script was running in a
> logged in session.
>
> I had tried to tweak the security setting using "dcomcnfg" utility without
> any success. Is there a solution for this? I know MS does not support
> server-side automation using Office.
>
> Any help will be appreciated very much. Thank you.

AddThis Social Bookmark Button