←Select platform

LoadFromStream Method

Summary

Loads an Excel workbook from a given stream into a LEADWorkbook instance.

Syntax

C#
C++/CLI
Python
public static LEADWorkbook LoadFromStream( 
   Stream stream, 
   LoadWorkbookOptions options 
) 
public:  
   static LEADWorkbook^ LoadFromStream( 
      Stream^ stream, 
      LoadWorkbookOptions^ options 
   ) 
def LoadFromStream(self,stream,options): 

Parameters

stream

A Stream from which the Excel workbook will be loaded. The stream must be readable and positioned at the beginning of the workbook data.

options

An instance of LoadWorkbookOptions providing additional settings for loading the workbook.

Return Value

An instance of the LEADWorkbook class loaded with the content from the provided stream. If the stream is null, unreadable, or contains data that cannot be interpreted as a valid Excel workbook, an appropriate exception is thrown.

Requirements

Target Platforms

See Also

LEADWorkbookFactory Class

LEADWorkbookFactory Members

Leadtools.Document.LEADOffice.Sheet Namespace

Help Version 23.0.2024.4.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.LEADOffice Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.