Spread Windows Forms 10.0 Product Documentation
PdfWriteMode Enumeration
Example Example 


Specifies the output mode for printing the sheet as PDF.
Syntax
'Declaration
 
Public Enum PdfWriteMode 
   Inherits System.Enum
'Usage
 
Dim instance As PdfWriteMode
public enum PdfWriteMode : System.Enum 
Members
MemberDescription
AppendPrints the sheet as PDF to the file or stream from the print information of the previous sheet
NewPrints the sheet as PDF to a file or stream with no reference to previous sheets
Example
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;
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.PdfWriteMode

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

FarPoint.Win.Spread Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.