View Single Post
 
Old 02-06-2015, 05:06 PM
Guessed's Avatar
Guessed Guessed is offline Windows 7 32bit Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,159
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I don't have a good answer for this problem but I do have some ramblings that might help.

To me that appears to be a document export event rather than a document save event so I'm not altogether surprised that the event doesn't get trapped by documentbeforesave. For instance, if the document is in a saved state and I make some changes and click that button and follow it through to completion, the resulting PDF has those changes but I can see the Word document is unsaved. Recording the step tells me I've run ExportAsFixedFormat.

It might be possible to handle that particular pathway by intercepting the built-in command but I couldn't find a likely contender for this.

Another alternative may be to edit the ribbon to either hide that button (FileSaveAsPdfOrXps) or replace it with one of your own.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote