System.IO.Stream s;
s = System.IO.File.Open("c:\\test.pdf", System.IO.FileMode.OpenOrCreate);
FpSpread1.SavePdf(s, new FarPoint.PDF.Source.Encryption.PdfSecurity("Test1"));
// FpSpread1.SavePdf(0, s, new FarPoint.PDF.Source.Encryption.PdfSecurity("Test1"));
// FpSpread1.SavePdf(FpSpread1.Sheets[0], s, new FarPoint.PDF.Source.Encryption.PdfSecurity("Test1"));
Dim s As System.IO.Stream
s = System.IO.File.Open("c:\test.pdf", System.IO.FileMode.OpenOrCreate)
FpSpread1.SavePdf(s, New FarPoint.PDF.Source.Encryption.PdfSecurity("Test1"))
'FpSpread1.SavePdf(0, s, New FarPoint.PDF.Source.Encryption.PdfSecurity("Test1"))
'FpSpread1.SavePdf(FpSpread1.Sheets(0), s, New FarPoint.PDF.Source.Encryption.PdfSecurity("Test1"))