GrapeCity SPREAD for Windows Forms 12.0J
PdfSecurity プロパティ


シートをPDFとして印刷する場合のセキュリティを取得または設定します。
構文
'Declaration
 
Public Property PdfSecurity As PdfSecurity
'使用法
 
Dim instance As PrintInfo
Dim value As PdfSecurity
 
instance.PdfSecurity = value
 
value = instance.PdfSecurity
public PdfSecurity PdfSecurity {get; set;}
次のサンプルコードは、パスワードで保護されたPDFファイルを作成します。
// 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.HeaderHeight = 30;
// Assign the printer settings to the sheet and print to PDF
printset.PdfSecurity = new FarPoint.PDF.PdfSecurity("test", "test1", FarPoint.PDF.PdfPermissions.AllowPrint);
printset.PrintToPdf = true;
printset.PdfFileName = "C:\\results.pdf";
fpSpread1.Sheets[0].PrintInfo = printset;
fpSpread1.PrintSheet(0);
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.HeaderHeight = 30
' Assign the printer settings to the sheet and print to PDF
printset.PdfSecurity = New FarPoint.PDF.PdfSecurity("test", "test1", FarPoint.PDF.PdfPermissions.AllowPrint)
printset.PrintToPdf = True
printset.PdfFileName = "C:\results.pdf"
FpSpread1.Sheets(0).PrintInfo = printset
FpSpread1.PrintSheet(0)
参照

PrintInfo クラス
PrintInfo メンバ

 

 


Copyright © 2004 GrapeCity inc.