Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2370
Excel workbook created from infragistics and saved to .xls opens in protected view in Excel 2013
posted

Run the sample application.  If you then check your bin/debug folder, you will see the .xls file that was written.  Open that file in Excel 2013 (it could very well happen in other versions of Excel as well) and you will get the "PROTECTED VIEW  Office has detected a problem with this file.  Editing it may harm your computer.  Click for more details."

WpfApplication1.zip
Parents
No Data
Reply
  • 34830
    Offline posted

    Hello Jon,

    Thank you for your post.

    I have been looking into this a bit, and I was initially able to reproduce this issue you are seeing. After reading up on Protected View in Excel, I found that Excel files that originate from the Internet may open in protected view, so I tried opening the "sample breakage.xlsx" file that you have attached in Excel 2013 and found that it was originally in protected view. After setting it to not be in protected view, which essentially then "trusts" the file, I am not seeing the "opens_in_protected_view.xls" file opening in protected view when creating it with the sample project you sent.

    I believe that this is likely expected behavior, but I believe I need a little bit of information from you on this matter first. When you try opening the "sample breakage.xlsx" file on your machine, does it open in protected view? If so, then the workbook that is created by loading your file via the Infragistics Excel Engine will load in as "protected" and therefore will export as protected as well. Would it be possible for you to please verify the behavior you are seeing with your "sample breakage.xlsx" so I may continue looking into this issue to find out if it is a bug in the Excel engine or whether this is actually expected behavior?

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support

Children