|
|
Hi all. I have a Word 2003 mail merge document that has a FILLIN field in it. The FILLIN works fine but the output document has no menu or toolbars at all. This means I can't print, save, format, etc. If I take out the FILLIN I get them.
Any help?
Rgds, Jaime
|
|
If these merges are being run by automating Word, I've read that you may need to issue .Activate on the Window (and possibly set .Visible to True - the ssequence may be significant).
Otherwise, no clues, sorry.
Peter Jamieson
<jcook[ at ]y-prime.com> wrote in message news:1178947319.700981.177860[ at ]y80g2000hsf.googlegroups.com...
[Quoted Text] > Hi all. I have a Word 2003 mail merge document that has a FILLIN > field in it. The FILLIN works fine but the output document has no > menu or toolbars at all. This means I can't print, save, format, > etc. If I take out the FILLIN I get them. > > Any help? > > Rgds, > Jaime >
|
|
Hi Peter,
We have a program our customers use which automates Word to perform mail merges and over time two problems surfaced; one was that sometimes after the merge the menu bar and toolbars would be missing, and the other was that sometimes the menu bar and toolbars would be there but would be inactive until Word's window state was changed (e.g. by minimising and maximising Word).
The problem of the missing toolbars seemed to happen if Word "thought" the merge had been interrupted - possibly by some types of error, or by fill-in fields.
In our code we set the .Visible property of the application object to true before starting the merge to get around that.
We used the .Activate method of the application object to get around the problem of the inactive toolbars.
I didn't write the code but I've just read through it and the order that we used is: Set the app visible. Activate the app. Perform the merge (and maybe do other stuff). Activate the app.
Not sure if both activations are necessary or whether this was "belt and braces".
Regards.
Ed
"Peter Jamieson" wrote:
[Quoted Text] > If these merges are being run by automating Word, I've read that you may > need to issue .Activate on the Window (and possibly set .Visible to True - > the ssequence may be significant). > > Otherwise, no clues, sorry. > > Peter Jamieson > > <jcook[ at ]y-prime.com> wrote in message > news:1178947319.700981.177860[ at ]y80g2000hsf.googlegroups.com... > > Hi all. I have a Word 2003 mail merge document that has a FILLIN > > field in it. The FILLIN works fine but the output document has no > > menu or toolbars at all. This means I can't print, save, format, > > etc. If I take out the FILLIN I get them. > > > > Any help? > > > > Rgds, > > Jaime > > > >
|
|
Hello again,
I should have been a bit clearer about when the menu bar and toolbars would go missing. This would only happen with an "interruption" to the merge when Word was not yet visible. If Word was already visible we would not get the problem.
Cheers.
Ed
"Peter Jamieson" wrote:
[Quoted Text] > If these merges are being run by automating Word, I've read that you may > need to issue .Activate on the Window (and possibly set .Visible to True - > the ssequence may be significant). > > Otherwise, no clues, sorry. > > Peter Jamieson > > <jcook[ at ]y-prime.com> wrote in message > news:1178947319.700981.177860[ at ]y80g2000hsf.googlegroups.com... > > Hi all. I have a Word 2003 mail merge document that has a FILLIN > > field in it. The FILLIN works fine but the output document has no > > menu or toolbars at all. This means I can't print, save, format, > > etc. If I take out the FILLIN I get them. > > > > Any help? > > > > Rgds, > > Jaime > > > >
|
|
Hi Ed,
Thanks,
Peter Jamieson "Ed" <Ed[ at ]discussions.microsoft.com> wrote in message news:00D9C7EF-2A1C-410E-864E-3F8AAEDDE666[ at ]microsoft.com...
[Quoted Text] > Hi Peter, > > We have a program our customers use which automates Word to perform mail > merges and over time two problems surfaced; one was that sometimes after > the > merge the menu bar and toolbars would be missing, and the other was that > sometimes the menu bar and toolbars would be there but would be inactive > until Word's window state was changed (e.g. by minimising and maximising > Word). > > The problem of the missing toolbars seemed to happen if Word "thought" the > merge had been interrupted - possibly by some types of error, or by > fill-in > fields. > > In our code we set the .Visible property of the application object to true > before starting the merge to get around that. > > We used the .Activate method of the application object to get around the > problem of the inactive toolbars. > > I didn't write the code but I've just read through it and the order that > we > used is: > Set the app visible. > Activate the app. > Perform the merge (and maybe do other stuff). > Activate the app. > > Not sure if both activations are necessary or whether this was "belt and > braces". > > Regards. > > Ed > > "Peter Jamieson" wrote: > >> If these merges are being run by automating Word, I've read that you may >> need to issue .Activate on the Window (and possibly set .Visible to >> True - >> the ssequence may be significant). >> >> Otherwise, no clues, sorry. >> >> Peter Jamieson >> >> <jcook[ at ]y-prime.com> wrote in message >> news:1178947319.700981.177860[ at ]y80g2000hsf.googlegroups.com... >> > Hi all. I have a Word 2003 mail merge document that has a FILLIN >> > field in it. The FILLIN works fine but the output document has no >> > menu or toolbars at all. This means I can't print, save, format, >> > etc. If I take out the FILLIN I get them. >> > >> > Any help? >> > >> > Rgds, >> > Jaime >> > >> >>
|
|
|