Based on this answer: http://stackoverflow.com/questions/1600502/programmatically-configuring-ms-words-trust-center-settings-using-c-sharp
I'd suggest you examine a box that shows the problem, before attempting to fix it. Export the segment of registry keys beginning with HKEY_CURRENT_USER\Software\Microsoft\Office and save it off as oldkeys.reg. Then, manually open up the Trust Center and make the changes you need. Test them to ensure they work. Then export the same set of registry keys are newkeys.reg and diff the two files. The difference should show you the registry keys you need to set. On Fri, May 29, 2015 at 4:20 PM, Kurt Wendt <[email protected]> wrote: > Recently, one of our users - who does QA Testing - got an error when > attempting to create an Exel file -which in this part of the system is done > via Automation. The error he got was: > "Error Message - OLE IDispatch exception code 0 from Microsoft Excel: You are > attempting to open a file type that is blocked by your File Block settings in > the Trust Center..." > > The Developer who works on this particular system (which I am scheduled to > take over its maintenance) - she wrote an internal e-mail telling other folks > in the co. about the issue. This is what she wrote: > "George actually addressed this issue by changing his trust center settings > to enable opening earlier versions of excel because this cannot be done > programmatically. > In addition, this error occurred (before George changed his trust center > settings) when the VFP code was using Excel automation, i.e., a method of > creating an Excel object instance within VFP. " > > I'm curious to know if it's possible to resolve this Trust issue > programmatically - in case some folks in this forum may have already come > across this issue. > > Thanks, > -K- > > > GLOBETAX > 90 Broad Street > New York, NY 10004-2205, U.S.A. > Tel. +1-212-747-9100 > Fax. +1-212-747-0029 > Email: [email protected]<mailto:%[email protected]> > Web: www.GlobeTax.com<http://www.globetax.com/> > > GlobeTax does not provide or offer, and this is not, tax, investment or legal > advice. This email and any attachments hereto is intended only for use by the > addressee(s) and may contain confidential information. If you are not the > intended recipient of this e-mail, please immediately notify the sender at > +1-212-747-9100 and permanently delete the original and any copies of this > e-mail. > > > > > --- StripMime Report -- processed MIME parts --- > multipart/alternative > text/plain (text body -- kept) > text/html > --- > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cacw6n4vhmtq-pfxu8761wfpvt+ixhtyxxnvm0wobfoih5yq...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

