have tested your sample again and note that you close the
GuiWordTemplate Form when Word Merges
The above is correct. If you merge, then the form is closed.
, on my progam your GuiWordTemplate Form
remains open and my main form closes.
Hum, yes, as mentioned, perhaps you are opening your form as dialog?
(check this).
Word still opens like a popup and not
full screen.
Yes, that is correct. Word should open up to the last size YOU used!!! .So,
simply re-size word as you please...perhaps almost full screen size would be
good. This just respects how the user previous had word sized, and I don't
mess with this to piss off users. So, size word to what you like. Next time
it lauches..it should appear as that size.
Using Office Pro 2003
Have managed to get it to work where it closes my Confirmation Form and
not
What conformaton form? When does that launch? I assumign for right now, we
are using the smaple download, or you have a form in your appciton, and you
palced ONE LINE of code behind the buttion
MergeSingleWord
The above command is going to launch that word prompt form of mine...and you
likey don't want to change the focus after/during this process.
Test the above with the sample, or yours untill this works. If your app
don't work, then go back to testing/playing with the smaple downlaod untill
that works.
It does seem that the sample works as it should. Try re-sizing word...and
then close/save the document...
I would have to assume that my sample does launch word, and word has the
focus.
If the sample down works correct (and you seem to hint that it does), then I
have to assume that perhaps after you execute mergesingle word, you are
running other code. Remember, my merge code has to pick up fields from the
form that had the focus when my code launches (as you don't even has to pass
my routines any data!!!).
So, check the sample again, but it seems to be running correct. (when you
merge, I close my prompt form...if you edit a template, then it stays open,
as you
a) likely want to edit more templates
or
b) want to test merge the document you just edited...
So, assuming the sample download does/is working correctly, is there any
other code you execute when you do a MergeSingle word?
That sample is downloaded zillions of times, and there is generally not a
problem such as yours. Something else is very wrong here...I just don't know
what.
If the sample don't work, then there is LITTLE use trying to get it to work
in your existing application.
Simply play with, and get the sample download (unmodified) working first.
Once that seems to work, then you can go back to the process of trying to
use it in your code. If the sample don't work on your machine, it is a
exercise in futility to skip on this, and then try to make it work in your
code/existing applications.
We have to get the un-modified download sample to work on your machine,
since that is the one that works on 1000's of other machines as is....