Invisible Word

E

escher4096

If I attempt to do some automation from a web site (I do all of the
setup and what no so that it all runs) I have several documents that
will generate but will not look proper. I run the same code not under
a web context (from a little command line application wrapper) and the
resulting document does look proper. The only difference I notice in
the running of the 2 is that when I run it from my command line
program the Word application is visible and when I run it from the
website the Word application is not visible.

So I played with this a bit more. If from my command line program
(when the document is generated properly) I set 'wdApp.Visible =
False' then the document generated by the website and the command line
program look the same (and broken). So the issue has to be tied to the
visibility of the application some how.

I have 'wdApp.Visible = True' but the application never becomes
visible when run from the website. Does anyone know how to force the
application to be visible when running under my Application Pool user?
This user is a full user (has a profile, can login and all of that
type of stuff) it is just running the website.

Using VB.NET 2.0 on a Windows 2003 Server.

Any help / suggestions would be appreciated.

Thanks

-Cam
 
G

Grimm

I'm not sure if I understand your question
are your app runnig on the client-side
or on the server side?

server-side:
1) don't do it
2) which user do you use have it desktop access? (the one in the app-pool)
3) did you loged in with this user one-time (install stuff...)?
4) don't do it - read their is a kb
5) buy a library for that..

client-side:
1) try to reuse the word.applilcation (getactiveobject).
2) think about buying a library for that

hope this helps
flori
 
E

escher4096

I'm not sure if I understand your question
are your app runnig on the client-side
or on the server side?

server-side:
1) don't do it
2) which user do you use have it desktop access? (the one in the app-pool)
3) did you loged in with this user one-time (install stuff...)?
4) don't do it - read their is a kb
5) buy a library for that..

client-side:
1) try to reuse the word.applilcation (getactiveobject).
2) think about buying a library for that

hope this helps
flori

It is server side
1) didn't want to do it, really, really didn't want to do it.
2) created a new user just for this purpose
3) Yip, didn't some silly pop-up stopping the process from running.
Ran word and did some setup stuff.
4) Read the KB, still have to do it. Porting legacy code that depends
on this. It is either do this or continue on supporting the VB6 COM
code, which brings me back to #1
5) I haven't heard of any libraries, what would you suggest?

Thanks for you help.

-Cam
 
C

ChrisHarrington

Hi Cam,

I successfully do Word automation on the server-side in my projects - mainly
to perform MailMerge generation of documents. Let me know if you would need
assistance.

Chris Harrington
Active Interface, LLC.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top