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

## FileResult.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 [FileResult](../)
* namespace [Aspose.Page.Plugins](../../fileresult/)
* assembly [Aspose.Page](../../../)


