# Setting PrintInfo Class Properties

Spread for ASP.NET allows you to set properties for the PrintInfo class that are used when saving to a PDF file. Learn more in documentation.

## Content

You can set properties for the [PrintInfo](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.PrintInfo.html) class that are used when saving to a PDF file. You can specify titles, headers, footers, and many other options with the [PrintInfo](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.PrintInfo.html) class.
The properties in this class are only available when saving to a PDF file.

> !type=note
> **Note:** The ShowColumnHeader and ShowRowHeader properties in the PrintInfo class apply when printing or saving to PDF.

You can also specify smart print options. See [Setting Smart Print Options](/spreadnet/docs/latest/online-asp/overview/spweb-devguide/spweb-fileops/spweb-filesave/spweb-filesave-pdf/spweb-pdfprintsmart) for more information.

## Using Code

Set the PrintInfo class properties and then use the [SavePdf](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.FpSpread.SavePdf.html) method.

## Example

This example code sets the orientation before saving to PDF.

```csharp
FarPoint.Web.Spread.PrintInfo pi = new FarPoint.Web.Spread.PrintInfo();
pi.Orientation = FarPoint.Web.Spread.PrintOrientation.Landscape;
FpSpread1.Sheets[0].PrintInfo = pi;
FpSpread1.SavePdf("c:\\test.pdf");
```

```vbnet
Dim pi As New FarPoint.Web.Spread.PrintInfo()
pi.Orientation = FarPoint.Web.Spread.PrintOrientation.Landscape
FpSpread1.Sheets(0).PrintInfo = pi
FpSpread1.SavePdf("c:\test.pdf")
```