This section specifically for Bold Reports® version less than
2.x
. If you are using higher version of Bold Reports®, we recommend you to refer the sectionlicensing tokens
to register your application with Bold Licensing.
Starting with the version 1.2.x
, Syncfusion® introduced a new licensing system for the Bold Reports®. You have to include the license key in your projects in order to use the Bold Reports® assemblies. Note that the license key is different from the setup unlock key and that needs to be generated separately from the Bold Reports® website. The below licensing error will be displayed if the license key is missing in your projects.
This application was built using a trial version of Bold Reports®. Please include a valid license to permanently remove this license validation message. You can also obtain a free 30 day evaluation license to temporarily remove this message during the evaluation period.
License keys can be generated from the Downloads & key/Claim License Key section of the Bold Reports® site.
Bold Reports® license keys are version specific. So, you should use the corresponding version license key in the projects.
The generated license key is just a string that needs to be registered before any Bold Reports® control is initiated. The following code is used to register the license.
Bold.Licensing.BoldLicenseProvider.RegisterLicense("YOUR LICENSE KEY");
Register the license key in Application_Start method of Global.asax.cs/Global.asax
void Application_Start(object sender, EventArgs e)
{
//Register Bold license
Bold.Licensing.BoldLicenseProvider.RegisterLicense("YOUR LICENSE KEY");
// Code that runs on application startup
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
Register the license key in Application_Start method of Global.asax.cs
void Application_Start(object sender, EventArgs e)
{
//Register Bold license
Bold.Licensing.BoldLicenseProvider.RegisterLicense("YOUR LICENSE KEY");
// Code that runs on application startup
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
Register the license key in Configure
method of Startup.cs
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
{
//Register Bold license
Bold.Licensing.BoldLicenseProvider.RegisterLicense("YOUR LICENSE KEY");
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug();
}
Register the license key in App constructor of App.xaml.cs
in C#. If App constructor not available in App.xaml.cs
, create the App()
constructor in App.xaml.cs
and register the license key inside the constructor.
public partial class App : Application
{
public App()
{
//Register Bold license
Bold.Licensing.BoldLicenseProvider.RegisterLicense("YOUR LICENSE KEY");
}
}
Register the license key in App.xaml.cs
constructor before InitializeComponent()
in C#. If App constructor not available in App.xaml.cs
, create the App()
constructor in App.xaml.cs
and register the license key inside the constructor.
public App()
{
//Register Bold license
Bold.Licensing.BoldLicenseProvider.RegisterLicense("YOUR LICENSE KEY");
this.InitializeComponent();
this.Suspending += OnSuspending;
}