
## to_html(file_name, options) {#str-aspose.diagram.saving.HTMLSaveOptions}

Creates the html and saves it to a file.



```python
def to_html(self, file_name, options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| file_name | str |  |
| options | aspose.diagram.saving.HTMLSaveOptions | html save options |


## to_html(stream, options) {#io.RawIOBase-aspose.diagram.saving.HTMLSaveOptions}

Creates the shape html and saves it to a stream in the specified format.



```python
def to_html(self, stream, options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| stream | io.RawIOBase | The output stream. |
| options | aspose.diagram.saving.HTMLSaveOptions | Addtional html creation options |



### See Also
* module [aspose.diagram](../../)
* class [Shape](/diagram/python-net/aspose.diagram/shape)
