Spread Windows Forms 11.0 Product Documentation
PdfWriteTo Enumeration
Example Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace : PdfWriteTo Enumeration
Specifies the output for printing the sheet as PDF.
Syntax
'Declaration
 
Public Enum PdfWriteTo 
   Inherits System.Enum
'Usage
 
Dim instance As PdfWriteTo
public enum PdfWriteTo : System.Enum 
Members
MemberDescription
FilePrints the sheet as PDF to a file
StreamPrints the sheet as PDF to a stream
Example
This example uses the PdfWriteTo enumeration.
 // Define the printer settings
FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
printset.Header = "Print Job For /nFPT Inc.";
printset.Footer = "This is Page /p/nof /pc Pages";
printset.PdfWriteTo = FarPoint.Win.Spread.PdfWriteTo.File;
printset.PdfWriteMode = FarPoint.Win.Spread.PdfWriteMode.Append;
// Assign the printer settings to the sheet and print to PDF
printset.PrintToPdf = true;
printset.PdfFileName = "C:\\results.pdf";
fpSpread1.Sheets[0].PrintInfo = printset;
fpSpread1.PrintSheet(0);
' Define the printer settings
Dim printset As New FarPoint.Win.Spread.PrintInfo()
printset.Header = "Print Job For /nFPT Inc."
printset.Footer = "This is Page /p/nof /pc Pages"
printset.PdfWriteTo = FarPoint.Win.Spread.PdfWriteTo.File
printset.PdfWriteMode = FarPoint.Win.Spread.PdfWriteMode.Append
' Assign the printer settings to the sheet and print to PDF
printset.PrintToPdf = True
printset.PdfFileName = "C:\results.pdf"
fpSpread1.Sheets(0).PrintInfo = printset
fpSpread1.PrintSheet(0)
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.PdfWriteTo

See Also

Reference

FarPoint.Win.Spread Namespace