-
I'm trying to incorporate ClosedXML into our app that currently uses OpenXML. A short version of my issue is that this doesn't work This: using (SpreadsheetDocument spreadsheetDocument = SpreadsheetDocument.Open(filepath, true))
{
using (var workbook = new XLWorkbook(filepath)) // <-- breaks here
{
// some logic
}
} Returns:
What does work is changing isEditable to false like so - My workaround currently is to create a temporary copy to open when utilizing ClosedXML. However, if there's a way to pass OpenXML objects directly into ClosedXML then I would greatly appreciate being pointed in the right direction |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is no way to do that. OpenXML Sdk code/objects is used only during loading and saving and the long term plan is to remove OpenXML SDK as a dependency. |
Beta Was this translation helpful? Give feedback.
There is no way to do that. OpenXML Sdk code/objects is used only during loading and saving and the long term plan is to remove OpenXML SDK as a dependency.