IronPrintライセンスキーの使用
ライセンス キーの取得方法
IronPrint ライセンス キーを追加すると、制限や透かしなしでプロジェクトをライブで展開できます。
こちらでライセンスキーを購入するか、無料の30日間トライアルキーにサインアップすることができます。
ステップ1:IronPrintの最新バージョンをダウンロードする
ステップ 2: ライセンス キーを適用する
コードを使用してライセンスを設定する
IronPrint が使用される前に、このコードをアプリケーションの起動時に追加します。 必ずYOUR_LICENSE_KEYを実際のIronPrintライセンスキーに置き換えてください。
using IronPrint;
class Program
{
static void Main()
{
// Apply the IronPrint license key at the start of your application
IronPrint.License.LicenseKey = "YOUR_LICENSE_KEY";
// Verify that the license key is applied
if (IronPrint.License.IsLicensed)
{
Console.WriteLine("License is applied successfully.");
}
else
{
Console.WriteLine("Failed to apply the license.");
}
// Start using IronPrint features
// Your code logic goes here
}
}Imports IronPrint
Class Program
Shared Sub Main()
' Apply the IronPrint license key at the start of your application
IronPrint.License.LicenseKey = "YOUR_LICENSE_KEY"
' Verify that the license key is applied
If IronPrint.License.IsLicensed Then
Console.WriteLine("License is applied successfully.")
Else
Console.WriteLine("Failed to apply the license.")
End If
' Start using IronPrint features
' Your code logic goes here
End Sub
End ClassImports IronPrint
Class Program
Shared Sub Main()
' Apply the IronPrint license key at the start of your application
IronPrint.License.LicenseKey = "YOUR_LICENSE_KEY"
' Verify that the license key is applied
If IronPrint.License.IsLicensed Then
Console.WriteLine("License is applied successfully.")
Else
Console.WriteLine("Failed to apply the license.")
End If
' Start using IronPrint features
' Your code logic goes here
End Sub
End ClassWeb.Config または App.Config を使用してライセンスを設定する
Web.Config または App.Config を使用してアプリケーションにキーをグローバルに適用するには、次のキーを appSettings 内の構成ファイルに追加します。
<configuration>
...
<appSettings>
<add key="IronPrint.LicenseKey" value="IRONPRINT.MYLICENSE.KEY.1EF01"/>
</appSettings>
...
</configuration>
プロジェクトにおいて2024.3.6以前にリリースされたIronPrintバージョンで既知のライセンス問題があります。
- ASP.NETプロジェクト
- .NET Frameworkバージョン >= 4.6.2
この製品で使用されていないキーがWeb.configファイルに保存されています。 「Web.configでのライセンスキー設定」トラブルシューティング記事を訪れて詳細を学んでください。
アプリケーションが正しくライセンスされていることを確認するために、IronPrint.License.IsLicensed が true を返すことを確認してください。
.NET Core appsettings.jsonファイルを使用してライセンスキーを設定する
.NET Core アプリケーションにキーをグローバルに適用するには:
- あなたのプロジェクトのルートディレクトリに
appsettings.jsonという名前のJSONファイルを追加してください。 - JSON設定ファイルに「IronPrint.LicenseKey」キーを追加します。値はライセンスキーにする必要があります。
- ファイルのプロパティに 出力ディレクトリにコピー: 常にコピー を含めることを確認してください。
ファイル: appsettings.json
{
"IronPrint.LicenseKey": "IRONPRINT.MYLICENSE.KEY.1EF01"
}
ステップ 3: ライセンス キーを検証する
インストールされたライセンス キーを確認する
ライセンス キーが正しく適用されているかどうかを確認するには、IsLicensed プロパティをチェックすることができます。 次のコードスニペットを使用してください。
using IronPrint;
class LicenseCheck
{
static void Main()
{
// Check if the license is applied
bool isLicensed = IronPrint.License.IsLicensed;
Console.WriteLine(isLicensed ? "License applied." : "License not applied.");
}
}using IronPrint;
class LicenseCheck
{
static void Main()
{
// Check if the license is applied
bool isLicensed = IronPrint.License.IsLicensed;
Console.WriteLine(isLicensed ? "License applied." : "License not applied.");
}
}Imports IronPrint
Friend Class LicenseCheck
Shared Sub Main()
' Check if the license is applied
Dim isLicensed As Boolean = IronPrint.License.IsLicensed
Console.WriteLine(If(isLicensed, "License applied.", "License not applied."))
End Sub
End ClassImports IronPrint
Friend Class LicenseCheck
Shared Sub Main()
' Check if the license is applied
Dim isLicensed As Boolean = IronPrint.License.IsLicensed
Console.WriteLine(If(isLicensed, "License applied.", "License not applied."))
End Sub
End Classライセンス キーを検証する
ライセンスやトライアル キーの有効性を確認するには、次のコード スニペットを使用できます。
using IronPrint;
class ValidateLicense
{
static void Main()
{
// Validate license or trial key
bool isValid = IronPrint.License.IsValidLicense("YOUR_LICENSE_KEY");
Console.WriteLine(isValid ? "License key is valid." : "License key is invalid.");
}
}using IronPrint;
class ValidateLicense
{
static void Main()
{
// Validate license or trial key
bool isValid = IronPrint.License.IsValidLicense("YOUR_LICENSE_KEY");
Console.WriteLine(isValid ? "License key is valid." : "License key is invalid.");
}
}Imports IronPrint
Class ValidateLicense
Shared Sub Main()
' Validate license or trial key
Dim isValid As Boolean = IronPrint.License.IsValidLicense("YOUR_LICENSE_KEY")
Console.WriteLine(If(isValid, "License key is valid.", "License key is invalid."))
End Sub
End ClassImports IronPrint
Class ValidateLicense
Shared Sub Main()
' Validate license or trial key
Dim isValid As Boolean = IronPrint.License.IsValidLicense("YOUR_LICENSE_KEY")
Console.WriteLine(If(isValid, "License key is valid.", "License key is invalid."))
End Sub
End Class戻り値がTrueの場合、キーが有効であることを意味し、IronPrint の使用を続行できます。 ただし、戻り値がFalseの場合、それはキーが無効であることを示しています。
ステップ 4: プロジェクトの開始
IronPrintを始めるには、「IronPrintの始め方」の包括的なチュートリアルに従うことを強くお勧めします。 このチュートリアルでは、IronPrint の基本を理解するのに役立つ詳細な手順と例を示します。
質問やサポートが必要ですか?
IronPrintを実際のプロジェクトで使用するには、有料またはトライアルライセンスキーが必要で、ライセンスを購入することで入手できます。 トライアルライセンスはこのリンクから入手できます。
コード例、チュートリアル、ライセンス詳細、幅広いドキュメントの包括的なコレクションについては、当社ウェブサイトのIronPrintセクションをご覧ください。
ご質問がある場合は、support@ironsoftware.comまでお気軽にお問い合わせください。
よくある質問
IronPrint のライセンスキーを取得するにはどうすればよいですか?
IronPrint ライセンスキーは当社のライセンスページから購入するか、無料の30日間トライアルキーにお申し込みください。
C#コードを使用して IronPrint ライセンスキーを適用するにはどうすればよいですか?
アプリケーションの起動時に IronPrint.License.LicenseKey = "YOUR_LICENSE_KEY"; を含め、IronPrintを利用する前にライセンスが適用されていることを確認してください。
Web.Config または App.Config を使用して IronPrint ライセンスキーを適用できますか?
はい、グローバルに適用するには、Web.ConfigまたはApp.ConfigファイルのappSettingsセクションに <add key="IronPrint.LicenseKey" value="YOUR_LICENSE_KEY" /> を追加してください。
Web.Config でライセンスキーが機能しない場合のトラブルシューティング手順は何ですか?
ASP.NET プロジェクトまたは .NET Framework バージョン >= 4.6.2 の場合に、Web.Config からのライセンスキーが認識されない場合は、「Web.config でのライセンスキーの設定」トラブルシューティング記事をご覧ください。
.NET Core の appsettings.json ファイルを使用して IronPrint ライセンスキーを適用するにはどうすればよいですか?
プロジェクトのルートディレクトリに appsettings.json ファイルを作成し、その中にキー "IronPrint.LicenseKey" を設定し、その値をライセンスキーに設定してください。そして、それが出力ディレクトリにコピーされるように設定してください。
IronPrint ライセンスキーが適用されているかどうかを確認するにはどうすればよいですか?
IronPrint.License.IsLicensed を使用してライセンスが適用されているか確認します。成功した場合、trueを返す必要があります。
IronPrint ライセンスキーを検証するにはどうすればよいですか?
IronPrint.License.IsValidLicense("YOUR_LICENSE_KEY") 関数を利用してライセンスまたはトライアルキーを検証します。キーが有効な場合はtrueを返します。
IronPrint を始めるためのチュートリアルはどこで見つけられますか?
IronPrint を始めるには、ステップバイステップの指示と例を含む当社の包括的な [IronPrint チュートリアル /csharp/print/docs/] を参照してください。
IronPrint について質問やサポートが必要な場合はどうすればよいですか?
IronPrint に関連する質問やサポートが必要な場合は、support@ironsoftware.com へお問い合わせください。
Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。