Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / PrintInfo Class / PdfWriteMode Property

In This Topic
    PdfWriteMode Property
    In This Topic
    Gets or sets how printing of the sheet as PDF is handled relative to other sheets.
    Public Property PdfWriteMode As PdfWriteMode
    Dim instance As PrintInfo
    Dim value As PdfWriteMode
    instance.PdfWriteMode = value
    value = instance.PdfWriteMode
    public PdfWriteMode PdfWriteMode {get; set;}

    Property Value

    PdfWriteMode setting that specifies how additional PDF printing is handled
    This example sets the PdfWriteMode property.
     // 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
    See Also