IronPrint 라이선스 키 사용
라이선스 키를 얻는 방법
IronPrint 라이선스 키를 추가하면 제한이나 워터마크 없이 프로젝트를 실제 환경에 배포할 수 있습니다.
여기에서 라이센스 키를 구매하거나 무료 30일 체험 키에 등록할 수 있습니다.
1단계: IronPrint 최신 버전을 다운로드하세요.
2단계: 라이선스 키를 적용하세요
코드를 사용하여 라이선스를 설정하세요
IronPrint 사용하기 전에 애플리케이션 시작 부분에 다음 코드를 추가하세요. 실제 IronPrint 라이선스 키로 YOUR_LICENSE_KEY를 교체해야 합니다.
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에 라이선스 키 설정' 문제 해결 기사를 방문하여 자세히 알아보세요.
애플리케이션이 올바르게 라이선스되었는지 확인하기 위해 true가 IronPrint.License.IsLicensed를 반환하는지 확인하십시오.
.NET Core 앱 설정 파일(appsettings.json)을 사용하여 라이선스 키를 설정하세요.
.NET Core 애플리케이션에 키를 전역적으로 적용하려면 다음 단계를 따르세요.
- 프로젝트 루트 디렉토리에
appsettings.json라는 JSON 파일을 프로젝트에 추가하십시오. - JSON 설정 파일에 ' IronPrint' 키를 추가하세요. 값은 라이선스 키여야 합니다.
- 파일 속성에 "출력 디렉터리로 복사: 항상 복사" 옵션이 포함되어 있는지 확인하십시오.
파일: 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일 무료 체험 키에 등록하세요.
IronPrint 라이선스 키를 C# 코드를 사용하여 어떻게 적용하나요?
애플리케이션 시작 시 IronPrint를 사용하기 전에 IronPrint.License.LicenseKey = "YOUR_LICENSE_KEY"; 코드를 포함하여 라이선스가 적용되도록 하십시오.
IronPrint 라이선스 키를 Web.Config 또는 App.Config를 사용하여 적용할 수 있나요?
예, 전역으로 적용하려면, Web.Config 또는 App.Config 파일의 appSettings 섹션에 <add key="IronPrint.LicenseKey" value="YOUR_LICENSE_KEY" />를 추가하십시오.
Web.Config에서 라이선스 키가 작동하지 않을 때 문제 해결 방법은 무엇인가요?
ASP.NET 프로젝트 또는 .NET Framework 버전 >= 4.6.2인 경우 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으로 연락하세요.
커티스 차우는 칼턴 대학교에서 컴퓨터 과학 학사 학위를 취득했으며, Node.js, TypeScript, JavaScript, React를 전문으로 하는 프론트엔드 개발자입니다. 직관적이고 미적으로 뛰어난 사용자 인터페이스를 만드는 데 열정을 가진 그는 최신 프레임워크를 활용하고, 잘 구성되고 시각적으로 매력적인 매뉴얼을 제작하는 것을 즐깁니다.