RadSpreadsheet Import Code Behind File Stream with FileAccess.Read only not working

0 Answers 40 Views
Spreadsheet
Patrick
Top achievements
Rank 1
Patrick asked on 26 Aug 2024, 10:17 PM

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,

Yoan
Telerik team
commented on 27 Aug 2024, 01:31 PM

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

No answers yet. Maybe you can help?

Tags
Spreadsheet
Asked by
Patrick
Top achievements
Rank 1
Share this question
or