Good Day Everyone
I created a website that has a crystal report on one of my page, it can extract a PDF file of the report by using this codes on my button.
try
with HttpContext.Current.Response
dim MyMemoryStream as MemoryStream = DirectCast(MyReportDoc.ExportToStream(CrystalDecision.Shared.ExportFormatType.PortableDocFormat),MemoryStream)
.Clear()
.Buffer = True
.MyReportDoc.ExportToHttpResponse(CrystalDecisions.Share.ExportFormatType.PortableDocFormat,HttpContext.CurrentResponse,True,"MyFileName")
End With
Catch ex1 as system.threading.threadAbortException
Thread.ResetAbort()
Catch ex as Exception
End Try
but one of my client request to export the PDF File as a password protected file, is this possible? is their a code for this or do i need a third party software for this? if yes can you recommend something?
thanks everyone, i really appreciate your hel ...
Go to the complete details ...