CancellationToken in DocumentFormat.OpemXml.Packaging.SpreadsheetDocument.Open function
Open
- Dominant language
- C#
- Stars
- 4.6k
- Forks
- 605
- PR merge metrics
- No merged PRs in 30d
Description
### Discussed in https://github.com/dotnet/Open-XML-SDK/discussions/1489
Originally posted by **ahsanaman92** July 7, 2023
Version: DocumentFormat.OpenXml v2.20.0
I am working on an issue where the customer has reported that it takes a while for the _DocumentFormat.OpemXml.Packaging.SpreadsheetDocument.Open_ function to determine a large Excel document (329 MB) is invalid over the network. Is there a plan to be able to pass a CancellationToken to the open function?
The function is passed a _System.IO.Stream input_ like this: using (SpreadsheetDocument Doc = SpreadsheetDocument.Open(input, false))
Contributor guide
Assessment
This issue has not been assessed yet.