dotnet / dotnet/Open-XML-SDK

CancellationToken in DocumentFormat.OpemXml.Packaging.SpreadsheetDocument.Open function

Open
#1,490 1 comment 2 reactions 2 assignees Claimed by @twsouthwick View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.