ActiveReports 13
Digital Signature Pro
ActiveReports 13 > ActiveReports User Guide > Samples and Walkthroughs > Samples > API > Page and RDL Reports > Digital Signature Pro

This sample demonstrates how you can digitally sign or set time stamp for a page/rdl report when exporting it to PDF format using the PDF Rendering Extension.

Sample Location

Visual Basic.NET

<User Folder>\Documents\GrapeCity Samples\ActiveReports 13\API\PageAndRDL\DigitalSignaturePro\VB.NET

C#

<User Folder>\Documents\GrapeCity Samples\ActiveReports 13\API\PageAndRDL\DigitalSignaturePro\C#

Details

When you run this sample, the Invoice report is displayed in the Viewer control.

Clicking the Generate Digitally Signed PDF button in the Viewer toolbar creates a PDF file with a time stamp or digital signatures, based on the settings you have specified in the Viewer toolbar. You can change the content of signatures in the Signature Format box and you can add the time stamp to the generated pdf file by checking the Set TimeStamp checkbox, in the Viewer toolbar.  

When you click the Generate Digitally Signed PDF button, a dialog for saving the destination file appears. After you indicate the location for a new PDF file, the PDF report file is created. Digital signature certificates dynamically reference and use GrapeCity.pfx, included in the project. Also, digital signatures dynamically load and use the gc.bmp file that you can find in the Image folder of this sample project.

Note: To run this sample, you must have access to the Nwind.mdb. A copy is located at [User Documents folder]\GrapeCity Samples\ActiveReports 13\Data\NWIND.mdb. If you are unable to access the data files in the sample, create the Data folder and place all the data files to this folder, or change the reference path to the data files within the folder according to your environment.