Accessing the methods of another application in order to control it.

B

barcrofter

I am trying to run a word processor (WP) out-of-process in an
application that uses it to generate a postscript file. Starting the
WP and then accessing the running process seems to be possible with
MarshalByRefObject, but I dont see how to access the WP methods this
way so that I can print a file using the process. Since I have to do
this many times in the application, if I do this "in-process" using
interop I tend to have memory problems on some of the installations.
 
R

rowe_newsgroups

I am trying to run a word processor (WP) out-of-process in an
application that uses it to generate a postscript file.  Starting the
WP and then accessing the running process seems to be possible with
MarshalByRefObject, but I dont see how to access the WP methods this
way so that I can print a file using the process.  Since I have to do
this many times in the application, if I do this "in-process" using
interop I tend to have memory problems on some of the installations.

Depending on what word processor you are using, this may be extremely
difficult or just plain not possible. If by chance the word processor
is Microsoft Word, you could use Office Interop for more granular
control and possibly do what you need.

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
 
B

barcrofter

Thanks for your suggestion. I am using WordPro as the wordprocessor.
It is the best for this particular application of desktop publishing.
The problem is that using interop services the combined application
(WordPro, Adobe Distiller and Adobe Acrobat) seems to run out of
memory. I have moved the distiller out of process and this helps a
lot. However WordPro still seems to hang onto its resources way to
long despite calls to GC and other Gods. Hence I want to move WordPro
out of the application by starting it independently and then
controlling it via its process -- if this is possible?
 
R

rowe_newsgroups

Thanks for your suggestion.  I am using WordPro as the wordprocessor.
It is the best for this particular application of desktop publishing.
The problem is that using interop services the combined application
(WordPro, Adobe Distiller and Adobe Acrobat) seems to run out of
memory.  I have moved the distiller out of process and this helps a
lot.  However WordPro still seems to hang onto its resources way to
long despite calls to GC and other Gods.  Hence I want to move WordPro
out of the application by starting it independently and then
controlling it via its process -- if this is possible?

Well, everything is possible, but this sounds extremely difficult to
me. It might not be, but I have zero experience in trying to do out of
process interop with WordPro so it's hard for me to say.

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
 

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