Bug? How to programmatically remove signature?

E

EZStrobe

I need to automatically remove the digital signature from a document when the
user creates the document from a template, and saves the document. More info:

Whenever a user creates a new document based on a template that contains
macros and saves it, the macros in the document are prevented from running
when the document is re-opened.

Scenario:

1) Template MyTemplate.vst contains macros and is digitally signed by user A
on computer A.

2) User A distributes MyTemplate.vst to user B.

3) User B creates a new Visio drawing based on MyTemplate.vst. She works on
the drawing but does not ever edit or touch the VBA code.

4) User B saves her drawing as MyDwg. vsd and closes the document.

5) User B opens MyDwg.vsd, and Visio complains with the following message:
"The macros in this file do not match the digital signature. Only a macro
virus would cause this. Please scan for viruses, and notify the publisher of
this document. Macros will be Disabled".

The only way to run the macros, is to remove the digital signature or
re-sign with another digital signature, save and close, and then reopen. This
should not be.

This must definitely be a bug. I cannot conceive how such a behavior could
be by design (this happens without user B ever even opening the VBA code
editor).

Information on how to automatically remove the signature from the document
upon creation would be greatly appreciated.

Thanks!
 

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

Top