Spread for ASP.NET 11 Product Documentation
SavePdfToResponse(String,PdfSecurity) Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class > SavePdfToResponse Method : SavePdfToResponse(String,PdfSecurity) Method
Path and file name
The password to encrypt pdf file
Saves the contents of the Spread component to a Response object in PDF file format.
Syntax
'Declaration
 
Public Overloads Function SavePdfToResponse( _
   ByVal fileName As String, _
   ByVal pdfSecurity As PdfSecurity _
) As Boolean
'Usage
 
Dim instance As FpSpread
Dim fileName As String
Dim pdfSecurity As PdfSecurity
Dim value As Boolean
 
value = instance.SavePdfToResponse(fileName, pdfSecurity)
public bool SavePdfToResponse( 
   string fileName,
   PdfSecurity pdfSecurity
)

Parameters

fileName
Path and file name
pdfSecurity
The password to encrypt pdf file
Example
This example uses the SavePdfToResponse method.
FpSpread1.SavePdfToResponse("test.pdf", new FarPoint.PDF.Source.Encryption.PdfSecurity("test", "test1", FarPoint.PDF.Source.Encryption.PdfPermissions.AllowPrint));
FpSpread1.SavePdfToResponse("test.pdf", New FarPoint.PDF.Source.Encryption.PdfSecurity("test", "test1", FarPoint.PDF.Source.Encryption.PdfPermissions.AllowPrint))
See Also

Reference

FpSpread Class
FpSpread Members
Overload List