---
title: "StreamResult.ToFile"
url: "https://reference.aspose.com/page/net/aspose.page.plugins/streamresult/tofile/"
product: "Aspose.Page for .NET API Reference"
description: "StreamResult method. Tries to convert the result to a file"
---

## StreamResult.ToFile method

Tries to convert the result to a file.

```csharp
public string ToFile()
```

### Return Value

A string representing the path to the output file if the result is file; otherwise `null`.

### See Also

* class [StreamResult](../)
* namespace [Aspose.Page.Plugins](../../streamresult/)
* assembly [Aspose.Page](../../../)


