Skip to content

Commit

Permalink
add Spreadsheet fromStream functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
HLWeil committed Sep 7, 2021
1 parent 1a9e018 commit ff260d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/FSharpSpreadsheetML/Spreadsheet.fs
Expand Up @@ -12,6 +12,9 @@ module Spreadsheet =
/// Opens the spreadsheet located at the given path
let fromFile (path:string) isEditable = SpreadsheetDocument.Open(path,isEditable)

/// Opens the spreadsheet located at the given path
let fromStream (stream:System.IO.Stream) isEditable = SpreadsheetDocument.Open(stream,isEditable)

/// Initializes a new empty spreadsheet at the given path
let initEmpty (path:string) = SpreadsheetDocument.Create(path, SpreadsheetDocumentType.Workbook)

Expand Down

0 comments on commit ff260d6

Please sign in to comment.