Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / PdfWriteMode Enumeration
Example Example

In This Topic
    PdfWriteMode Enumeration
    In This Topic
    Specifies the output mode for printing the sheet as PDF.
    Public Enum PdfWriteMode 
       Inherits System.Enum
    Dim instance As PdfWriteMode
    public enum PdfWriteMode : System.Enum 
    Append Prints the sheet as PDF to the file or stream from the print information of the previous sheet
    New Prints the sheet as PDF to a file or stream with no reference to previous sheets
    This example uses the PdfWriteMode 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;
    ' 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
    Inheritance Hierarchy


    See Also