ActiveReports.PdfExport Send comments on this topic.
PdfStamp Class
See Also  Members   Example 
ActiveReports.PdfExport Assembly > DataDynamics.ActiveReports.Export.Pdf.Signing Namespace : PdfStamp Class

Encapsulates the information necessary to draw PDF document digital signatures and certification on documents.

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class PdfStamp 
C# 
public sealed class PdfStamp 

Example

Visual BasicCopy Code
' Text signature.
Me.PdfExport1.Signature.VisibilityType = DataDynamics.ActiveReports.Export.Pdf.Signing.VisibilityType.Text
Me.PdfExport1.Signature.Stamp.Bounds = New RectangleF(1, 1, 4, 2)
Me.PdfExport1.Signature.Stamp.TextAlignment = DataDynamics.ActiveReports.Export.Pdf.Signing.Alignment.Left

' Set certificate & password.
Me.PdfExport1.Signature.Certificate = New Security.Cryptography.X509Certificates.X509Certificate2(Application.StartupPath & "\..\..\certificate.pfx", "password")

' Signature items.
Me.PdfExport1.Signature.SignDate = New DataDynamics.ActiveReports.Export.Pdf.Signing.SignatureField(Of Date)(System.DateTime.Now(), True)
Me.PdfExport1.Signature.Contact = New DataDynamics.ActiveReports.Export.Pdf.Signing.SignatureField(Of String)("ar6@grapecity.com", True)
Me.PdfExport1.Signature.Reason = New DataDynamics.ActiveReports.Export.Pdf.Signing.SignatureField(Of String)("I agree.", True)
Me.PdfExport1.Signature.Location = New DataDynamics.ActiveReports.Export.Pdf.Signing.SignatureField(Of String)("Japan", True)

' Time stamp.
Me.PdfExport1.Signature.TimeStamp = New DataDynamics.ActiveReports.Export.Pdf.Signing.TimeStamp("http://TSAServer", "null", "null")
Me.PdfExport1.Export(rpt.Document, Application.StartupPath & "\..\..\TimeStamped.pdf")

Remarks

This feature is for use with the Professional Edition license only. An evaluation message is rendered when used with the Standard Edition license.

Note: This feature can not be used if a report is exported into a password-protected PDF document.

In the code example above, replace the path and filename and password of the Certificate with your certificate information, and replace the time stamping authority (TSA) URL with that of your TSA.

Note: You must purchase a volume-based registration at an actual TSA for your applications.

Inheritance Hierarchy

System.Object
   DataDynamics.ActiveReports.Export.Pdf.Signing.PdfStamp

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also