Spread ASP.NET 6.0 Product Documentation
Saving to PDF Methods
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 > Saving to PDF Methods

Glossary Item Box

Use one of the SavePDF methods or one of the SavePdfToResponse methods. The former saves the Spread control to the specified PDF file. The latter saves Spread to the specified PDF response object. The PrintInfo class is only used when saving to a PDF file.

You can also save a file from inside Spread Designer (File menu, Print, SaveToPDF).

Return to the overview at Saving Data to a File.

Using Code

Use the SavePDF method.

Example

This example saves to PDF with the SavePDF method.

C# Copy Code
FpSpread1.SavePdf("c:\\test.pdf");
VB Copy Code
FpSpread1.SavePdf("c:\test.pdf")

Using the Spread Designer

  1. Select the File menu.
  2. Choose the Print option.
  3. Choose the SaveToPDF option.
  4. For the Save As type, select PDF files (.PDF).
  5. Specify the path and file name to which to save the file, and then click Save.
  6. Click OK to close the Spread Designer.
© 2002-2012 GrapeCity, Inc. All Rights Reserved.