Using IronPPT License Keys
How to Get a License Key
Adding an IronPPT license key allows you to deploy your project live without restrictions or watermarks.
You can buy a license key or sign up for a free 30 day trial key here.
Step 1: Download the Latest Version of IronPPT
Start using IronPPT in your project today with a free trial.
Step 2: Apply Your License Key
Set your license using code
Add this code snippet to the startup of your application (e.g., in Program.cs
or Startup.cs
) before any IronPPT functionality is used.
:path=/static-assets/ppt/content-code-examples/how-to/license-keys-apply.cs
// This line of code is setting the license key for the IronPPT library.
// Ensure that you have a valid license key provided by IronPPT to avoid any licensing issues.
// The line below should typically be at the start of your application
// initialization process to ensure that the library is appropriately licensed
// before any library functions are utilized. Ensure that the IronPPT
// namespace and relevant assemblies are referenced in your project.
IronPPT.License.LicenseKey = "IRONPPT.MYLICENSE.KEY.1EF01";
' This line of code is setting the license key for the IronPPT library.
' Ensure that you have a valid license key provided by IronPPT to avoid any licensing issues.
' The line below should typically be at the start of your application
' initialization process to ensure that the library is appropriately licensed
' before any library functions are utilized. Ensure that the IronPPT
' namespace and relevant assemblies are referenced in your project.
IronPPT.License.LicenseKey = "IRONPPT.MYLICENSE.KEY.1EF01"
Set your license key using a .NET Core appsettings.json
file
To apply a license key globally within a .NET Core application, follow these steps:
- Add a JSON file named
appsettings.json
in the root directory of your project. - Add a
IronPPT.LicenseKey
entry to your JSON configuration file. Set its value to your specific license key. - Ensure that the file properties include Copy to Output Directory: Copy always.
File: appsettings.json
{
"IronPPT.LicenseKey": "IronPPT.MYLICENSE.KEY.1EF01"
}
Step 3: Validate Your License Key
Verify the Installed License Key
To verify whether the license key has been applied correctly, check the IsLicensed
property. Use the following code snippet:
:path=/static-assets/ppt/content-code-examples/how-to/license-keys-is-licensed.cs
// This code snippet checks whether the IronPPT license key has been successfully applied.
// It retrieves the license status using the IronPPT library's License class.
// Declaration and initialization of a boolean variable to store the license status
bool licensed = IronPPT.License.IsLicensed;
// It is assumed that the IronPPT library is correctly referenced,
// and that the license information has been set prior to this check.
// This boolean will be true if the license is applied correctly; otherwise, it will be false.
// The code below demonstrates how you might use this information in a larger application.
if (licensed)
{
Console.WriteLine("The IronPPT license has been successfully applied.");
}
else
{
Console.WriteLine("The IronPPT license is not applied. Please verify the license details.");
}
' This code snippet checks whether the IronPPT license key has been successfully applied.
' It retrieves the license status using the IronPPT library's License class.
' Declaration and initialization of a boolean variable to store the license status
Dim licensed As Boolean = IronPPT.License.IsLicensed
' It is assumed that the IronPPT library is correctly referenced,
' and that the license information has been set prior to this check.
' This boolean will be true if the license is applied correctly; otherwise, it will be false.
' The code below demonstrates how you might use this information in a larger application.
If licensed Then
Console.WriteLine("The IronPPT license has been successfully applied.")
Else
Console.WriteLine("The IronPPT license is not applied. Please verify the license details.")
End If
Validate the License Key
Ensure the validity of your license or trial key using this code snippet:
:path=/static-assets/ppy/content-code-examples/how-to/license-keys-is-valid.cs
// THIS CODE SNIPPET IS NOT AVAILABLE!
' THIS CODE SNIPPET IS NOT AVAILABLE!
If the return value is true
, it means the key is valid, and you can proceed with using IronPPT. If it returns false
, the key is invalid.
Step 4: Getting Started with Your Project
To get started with IronPPT, we highly recommend following our comprehensive tutorial on how to Get Started with IronPPT. This tutorial offers detailed instructions and examples to help you grasp the basics of using IronPPT.
Questions or Need Support?
To use IronPPT in live projects, you'll require a paid or trial license key, which you can obtain by purchasing a license. A trial license is available by visiting this link.
For a comprehensive collection of code examples, tutorials, licensing details, and extensive documentation, please visit the IronPPT section on our website.
If you have any questions, feel free to reach out to support@ironsoftware.com.
Frequently Asked Questions
How can I download the latest version of the C# presentation library?
To download the latest version of the C# presentation library, visit the IronPPT website and follow the download instructions provided on the licensing page.
What are the steps to apply a license key in a C# project?
To apply a license key in a C# project, you can add a code snippet to the startup file, such as Program.cs
or Startup.cs
, or use a appsettings.json
file to integrate the key within a .NET Core application.
How can I verify if my license key is correctly installed?
You can verify the installation of your license key by checking the IsLicensed
property in your code. If it returns true, the license is correctly installed.
What should I do if my license key is invalid?
If your license key is invalid, first ensure it is entered correctly. Check its validity using the IsValid
property. If problems persist, contact IronSoftware support for assistance.
Can I apply a license key using an appsettings.json file?
Yes, you can apply a license key using an appsettings.json
file by adding an IronPPT.LicenseKey
entry and setting its value to your specific license key.
Where can I find a tutorial for using the C# presentation library?
A comprehensive tutorial for using the C# presentation library is available on the IronPPT website, providing detailed instructions and examples to help you get started with IronPPT.
What support is included with the purchase of a license?
Purchasing a license includes one year of support and updates. For any questions or issues, you can contact support@ironsoftware.com.
Is there a free trial available for the C# presentation library?
Yes, a free 30-day trial license key is available. You can obtain it by visiting the trial license page on the IronPPT website.