This code behind does not work for importing files that are read only access. No error pops up, just a blank spreadsheet opens up
using (Stream input = new FileStream(this.ExcelDocumentSource, FileMode.Open, FileAccess.Read))
{
this.Workbook = new XlsxFormatProvider().Import(input);
//this.Workbook.Protect("telerik");
}
Thanks,
Hello Patrick,
I am sorry to hear you are experiencing setbacks. I would gladly like to help you with this case however without having any resources at my disposal which I can examine, my assistance is very limited.
That said, in order for me to get a better context and understanding of this case, would you be able to share with us a sample document that reproduces this behavior? That way I can try to achieve the same scenario you are experiencing, examine the results, and get back to you with details and specifics.
Note: Please also keep in mind that this is a public Q&A Forum and anything attached will be easily accessible. Let me know if you have any concerns so we can proceed accordingly.
Thank you in advance for your cooperation. I am looking forward to hearing from you.
Regards,
Yoan