IronWord 开始 使用许可证密钥 Using IronWord License Keys Curtis Chau 已更新:六月 9, 2025 Download IronWord NuGet 下载 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English How to Get a License Key Adding an IronWord 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 IronWord Step 2: Apply Your License Key Set your license using code Add this code to the startup of your application, before IronWord is used. :path=/static-assets/word/content-code-examples/get-started/license-keys-apply.cs IronWord.License.LicenseKey = "IRONWORD.MYLICENSE.KEY.1EF01"; IronWord.License.LicenseKey = "IRONWORD.MYLICENSE.KEY.1EF01" $vbLabelText $csharpLabel Set your license using Web.Config or App.Config To apply a key globally to your application using Web.Config or App.Config, add the following key to your config file in appSettings. <configuration> <appSettings> <add key="IronWord.LicenseKey" value="IRONWORD.MYLICENSE.KEY.1EF01"/> </appSettings> </configuration> <configuration> <appSettings> <add key="IronWord.LicenseKey" value="IRONWORD.MYLICENSE.KEY.1EF01"/> </appSettings> </configuration> XML There is a known licensing issue with IronWord versions released before 2024.3.5 on certain projects: ASP.NET projects .NET Framework version >= 4.6.2 The key stored in a Web.config file is NOT being picked up and used by the product. Visit the 'Setting License Key in Web.config' troubleshooting article to learn more. Ensure that IronWord.License.IsLicensed returns true to verify the license. Set your license key using a .NET Core appsettings.json file To apply a key globally to your .NET Core application: Add a JSON file to your project called appsettings.json in the root directory of your project. Add an IronWord.LicenseKey key to your JSON config file. The value should be your license key. Ensure that the file properties include Copy to Output Directory: Copy always. File: appsettings.json { "IronWord.LicenseKey": "IRONWORD.MYLICENSE.KEY.1EF01" } Step 3: Validate Your License Key Verify the Installed License Key To verify whether the license key has been applied correctly, you can check the IsLicensed property. Use the following code snippet: :path=/static-assets/word/content-code-examples/get-started/license-keys-is-licensed.cs // Check if the license key has been applied bool licensed = IronWord.License.IsLicensed; ' Check if the license key has been applied Dim licensed As Boolean = IronWord.License.IsLicensed $vbLabelText $csharpLabel Validate the License Key To ensure the validity of your license or trial key, you can use the following code snippet: :path=/static-assets/word/content-code-examples/get-started/license-keys-is-valid.cs // Check if a given license key string is valid bool valid = IronWord.License.IsValidLicense("IRONWORD.MYLICENSE.KEY.1EF01"); ' Check if a given license key string is valid Dim valid As Boolean = IronWord.License.IsValidLicense("IRONWORD.MYLICENSE.KEY.1EF01") $vbLabelText $csharpLabel If the return value is True, it means the key is valid, and you can proceed with using IronWord. However, if the return value is False, it indicates that the key is invalid. Step 4: Getting Started with Your Project To get started with IronWord, we highly recommend following our comprehensive tutorial on how to Get Started with IronWord. This tutorial offers detailed instructions and examples to help you grasp the basics of using IronWord. Questions or Need Support? To use IronWord in live projects, you'll require a paid or trial license key, which you can obtain by purchase a license. The trial license is available by visiting this link. For a comprehensive collection of code examples, tutorials, licensing details, and extensive documentation, please visit the IronWord section on our website. If you have any questions, feel free to reach out to support@ironsoftware.com. 常见问题解答 如何为我的 C# 项目获取许可证密钥? 您可以在 Iron Software 许可页面上购买许可证密钥或注册免费 30 天试用密钥。 如何在 C# 代码中应用许可证密钥? 在应用程序启动时使用 IronWord.License.LicenseKey 属性添加您的许可证密钥。 如何使用 Web.Config 或 App.Config 配置许可证密钥? 在 Web.Config 或 App.Config 文件的 appSettings 部分中添加一个名为 IronWord.LicenseKey 的密钥,并将您的许可证密钥用作值。 如果许可证密钥在 ASP.NET 项目中未被识别,我该怎么办? 如果密钥未被 ASP.NET 项目拾取,请参考 Web.config 中设置许可证密钥的故障排除文章。 如何在 .NET Core 应用中使用 appsettings.json 设置许可证密钥? 在项目根目录的 appsettings.json 文件中添加一个 IronWord.LicenseKey 密钥及您的许可证值。 如何验证我的许可证密钥在 IronWord 中是否正确应用? 检查 IronWord.License.IsLicensed 属性以确保正确安装许可证密钥。如果正确应用,应返回 true。 我如何验证许可证密钥的有效性? 使用 IronWord.License.IsValid 属性确认您的许可证密钥是否仍然有效。 我在哪里可以找到 IronWord 的教程和文档? 请访问 'IronWord 入门' 的综合教程,获取详细说明和示例。 对于 IronWord 的问题或疑问,我如何获取支持? 请联系 Iron Software 支持,support@ironsoftware.com,获取您可能需要的任何问题或帮助。 我可以不使用许可证密钥使用 IronWord 吗? 不使用许可证密钥使用 IronWord 将导致限制或水印。获取免费试用或购买许可证以无限制地使用 IronWord。 IronWord 是否完全兼容 .NET 10?许可证密钥是否可以以相同的方式应用? 是的。IronWord 支持 .NET 10(以及 .NET 9、8、7、6、.NET Core、.NET Standard 2.0+ 和 .NET Framework 4.6.2+ 版本),并且在 .NET 10 下,许可证密钥的工作方式与之前相同,可以通过代码、Web.Config/App.Config 或 appsettings.json 文件进行配置。([ironsoftware.com](https://ironsoftware.com/csharp/word/get-started/windows/?utm_source=openai)) Curtis Chau 立即与工程团队聊天 技术作家 Curtis Chau 拥有卡尔顿大学的计算机科学学士学位,专注于前端开发,精通 Node.js、TypeScript、JavaScript 和 React。他热衷于打造直观且美观的用户界面,喜欢使用现代框架并创建结构良好、视觉吸引力强的手册。除了开发之外,Curtis 对物联网 (IoT) 有浓厚的兴趣,探索将硬件和软件集成的新方法。在空闲时间,他喜欢玩游戏和构建 Discord 机器人,将他对技术的热爱与创造力相结合。 准备开始了吗? Nuget 下载 25,807 | 版本: 2025.11 刚刚发布 免费 NuGet 下载 总下载量:25,807 查看许可证