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


In This Topic
    PdfWriteTo Property
    In This Topic
    Gets or sets the output for printing the sheet as PDF.
    Syntax
    'Declaration
     
    Public Property PdfWriteTo As PdfWriteTo
    'Usage
     
    Dim instance As PrintInfo
    Dim value As PdfWriteTo
     
    instance.PdfWriteTo = value
     
    value = instance.PdfWriteTo
    public PdfWriteTo PdfWriteTo {get; set;}

    Property Value

    PdfWriteTo setting that specifies the output
    Example
    This example sets the PdfWriteTo 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;
    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)
    See Also