## XpsDocument::Save(System::SharedPtr\<System::IO::Stream\>) method


Saves [XPS](../../) document to stream.

```cpp
void Aspose::Page::XPS::XpsDocument::Save(System::SharedPtr<System::IO::Stream> stream)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | System::SharedPtr\<System::IO::Stream\> | Stream [XPS](../../) document to be saved into. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
## XpsDocument::Save(System::String) method


Saves [XPS](../../) document to [XPS](../../) file located at the *path* .

```cpp
void Aspose::Page::XPS::XpsDocument::Save(System::String path)
```


| Parameter | Type | Description |
| --- | --- | --- |
| path | System::String | Location of the document. |

## See Also

* Class [String](../../../system/string/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
