See Also

ActiveReport Class  | ActiveReport Members  | Licensing Applications

Language

Visual Basic

C#

Show All

val
The value string received when the Web.Config Key generator application is run.
See Also Languages ActiveReports Send feedback to Data Dynamics

SetLicense Method

Sets run-time licensing from the value string provided.

[Visual Basic]
Public Sub SetLicense( _    ByVal val As String _ )
[C#]
public void SetLicense(    string val );

Parameters

val
The value string received when the Web.Config Key generator application is run.

Remarks

To use SetLicense, first license your development machine using the licensestd2.exe or licensepro2.exe application. 

Then create a "web.config" key by running the "Create Web.Config Key" link from the Start menu.

In your application class, create a designer instance and use the SetLicense method to properly set the key you created.

SetLicense allows run-time licensing so that ActiveReports for .NET 2.0 can be used in other applications.

SetLicense should be called before running the report.

Example

[C#] 

// Use value generated using the "Create Web.Config Key" option from your Start menu  
rpt.SetLicense("[Your Name],[Your Company Name],[Your Serial Number],[Generated Hash Code]");  
rpt.Run(false);  

[Visual Basic] 

' Use value generated using the "Create Web.Config Key" option from your Start menu
rpt.SetLicense("[Your Name],[Your Company Name],[Your Serial Number],[Generated Hash Code]")
rpt.Run(False)

See Also

ActiveReport Class  | ActiveReport Members  | Licensing Applications

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.