Discussion:
bug in WdDialogFileVersions?
(too old to reply)
relic91
2005-06-30 19:50:01 UTC
Permalink
(Using a VB.Net COM Add-In)

The "FileVersions" Dialog in Word (WdDialogFileVersions) seems to be
returning the value -1 if the "Close" button on the main dialog is, as well
as -1 if the "Save" button on the wdDialogFileSaveVersion (which it calls) is
hit. According to documentation, in the former case, it sounds like this
ought to be returning -2. Any thoughts?

Also, because WdDialogFileVersions calls wdDialogFileSaveVersion, is there
any way to intercept the return value in the middle? That is, can I return
from the first dialog before it calls the second, and know what button was
pushed? (Using either display or show I seem to lose control until either the
close button in the first dialog is hit or the save button in the called
dialog is hit).

Thanks
Cindy M -WordMVP-
2005-07-03 08:52:39 UTC
Permalink
Hi =?Utf-8?B?cmVsaWM5MQ==?=,

It appears no one cares to venture an answer to this...

FWIW, the values built-in dialog boxes do or do not return are "iffy", at best.
In each successive version of Word since Word 97, the Dev team has cared less
and less about making sure this interface works. They have a sad tendency to
consider it a left-over from the WordBasic days, and therefore beneath their
notice. If it doesn't work, it doesn't work, and that's pretty much all there is
to it.

Personally, I can't get too excited about this one because, from what people
have experienced since this feature was introduced, I wouldn't touch it with a
ten-foot pole.
Post by relic91
(Using a VB.Net COM Add-In)
The "FileVersions" Dialog in Word (WdDialogFileVersions) seems to be
returning the value -1 if the "Close" button on the main dialog is, as well
as -1 if the "Save" button on the wdDialogFileSaveVersion (which it calls) is
hit. According to documentation, in the former case, it sounds like this
ought to be returning -2. Any thoughts?
Also, because WdDialogFileVersions calls wdDialogFileSaveVersion, is there
any way to intercept the return value in the middle? That is, can I return
from the first dialog before it calls the second, and know what button was
pushed? (Using either display or show I seem to lose control until either the
close button in the first dialog is hit or the save button in the called
dialog is hit).
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

Loading...