ActiveReports3 Request technical support
SetLicense Method
See Also  Example


val
The value string received when the Web.Config Key generator application is run.
Sets run-time licensing from the value string provided.

Syntax

Visual Basic (Declaration) 
Public Sub SetLicense( _
   ByVal val As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As ActiveReport3
Dim val As String
 
instance.SetLicense(val)
C# 
public void SetLicense( 
   string val
)

Parameters

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

Example

C#Copy Code
// 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 BasicCopy Code
' 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)

Remarks

To use SetLicense(), first license your development machine using the licensestd3.exe or licensepro3.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 3.0 can be used in other applications.

SetLicense() should be called before running the report.

See Also