Spread ASP.NET 6.0 Product Documentation
Setting PrintInfo Class Properties
Send Feedback
Spread ASP.NET 6.0 Product Documentation > Developer's Guide > Managing File Operations > Saving Data to a File > Saving to a PDF File > Setting PrintInfo Class Properties

Glossary Item Box

You can set properties for the PrintInfo class that are used when saving to a PDF file. The properties in this class are only available when saving to a PDF file.

Return to the overview at Saving Data to a File.

Using Code

Set the PrintInfo Class properties and then use the SavePDF method.

Example

This example code sets the orientation before saving to PDF.

C# Copy Code
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");
VB Copy Code
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")
© 2002-2012 GrapeCity, Inc. All Rights Reserved.