MS Word DDE speed II.

S

Stefan German

Hallo all,
recently I asked community for help with communication of our custom
aplication and MS Word 2000 via DDE. Yes, old way DDE usig wordbasic
commands. You can find details on
http://groups.google.com/groups?hl=cs&lr=&ie=UTF-8&th=e9e830bb0a284e5b&rnum=1
..

Recently I got new computer just with data sending application (our
custom application mentioned above), let's call it 'Sender' and MS
Word 2000. Also, I had lot of time to test cooperation of 'Sender', MS
Word 2000 (will be reffered as W2000) and documents designed for MS
Word 95 (7.0a) (will be reffered as W95). I managed to solve problems
with performance. (I was complaining about poor performance of W2000
when compared to W95.) I discovered, that while checking grammar is
turned on, W2000 does grmmar check after each bookmark setting. The
same applies for spellcheck. After turning off both checkings,
performance of W2000 is on the same level as W95. At least this part I
managed to solve. (Or, more precisely, to find out the reason. ;-) )

Then, there is other part, with breaking of communication between
'Sender' and W2000, or other interpretatio is, that W2000 stops to
respond to DDE commands. This happens after processing about 450
documents.

Just short description of process: I open W2000 manually, start
'Sender' and run printing batch. Printing batch creates in it's each
step 'main' connection to W2000. Then, document is opened and another
connection to that document is created. Insertion of subdocuments ans
bookmark values follows. Document is printed now. Connection to
document is closed and main connection to W2000 is closed just before
end of each step. This is repeated many times, until W2000 stops
responding. W95 is doing just fine. I don't know what is going on, and
I have no idea, how to track it. I tried to track DDE conversations,
but everything seems to work fine. It seems, that W2000 does'nt like
many wordbasic commands. Any ideas, what is happenning?

Thanks. Stefan.
 
W

Word Heretic

G'day (e-mail address removed) (Stefan German),

Why are you closing the Word connection for? I'd be keeping the one
instance open to use as the workhorse?

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


Stefan German reckoned:
 
S

Stefan German

I tried to do it both ways, keeping connection to word open and
closing it in each step. Both ways cause mentioned problem. Just to
explain reason: I did not want to override method for printing used in
user interface for printing single document, until it would not be
absolutely necessary.

Stefan.
 
W

Word Heretic

G'day (e-mail address removed) (Stefan German),

My GUESS is that you are overloading the DDE buffer. If possible, get
the Sender to pause every n documents, sleep for a few seconds or
something.

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


Stefan German reckoned:
 
S

Stefan German

Hallo!

I tried to pause even for a minute, but no effect. Just one thing
helps: Create sets of about 300 documents. ;-) That is, in current
conditions not acceptable.

Anyway, thank for ideas.

Stefan.
 

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

Similar Threads


Top