open method
Contents
[
Hide
]open(file_name)
Allows a COM application to load a Document from a file.
def open(self, file_name: str):
...
Parameter | Type | Description |
---|---|---|
file_name | str | Filename of the document to load. |
Remarks
This method is same as calling the Document constructor with a file name parameter.
Returns
A Document object that represents a Word document.
open(stream)
Allows a COM application to load Document from a stream.
def open(self, stream: io.BytesIO):
...
Parameter | Type | Description |
---|---|---|
stream | io.BytesIO | A .NET stream object that contains the document to load. |
Remarks
This method is same as calling the Document constructor with a stream parameter.
Returns
A Document object that represents a Word document.
See Also
- module aspose.words
- class ComHelper