通过 C# 创建 iXBRL(inline xbrl) 文件
iXBRL(内联 xbrl)文件创建,无需安装 Microsoft Office 或任何其他软件。
如何创建iXBRL(内联 xbrl)文件
按照代码片段中的步骤操作或根据您的应用程序需要对其进行增强,以生成可扩展的业务报告语言 iXBRL(内联 xbrl)文件。确保在您的应用程序中有创建要求。
- 创造 InlineXbrlDocument 类 实例。2.构建元素dom树
- 调用 保存方法 通过提供目标文件路径。
创作要求
要继续生成iXBRL(内联 xbrl)文档,.NET Finance API 是要包含在应用程序中的主要要求。
- 通过命令行将其安装为
nuget install Aspose.Finance
或通过 Visual Studio 的包管理器控制台使用Install-Package Aspose.Finance
进行安装。 - 或者,从 ZIP 文件中获取离线 MSI 安装程序或 DLL 下载 .
XBRL 文件创建的 C# 代码
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//create blank ixbrl document | |
InlineXbrlDocument document = new InlineXbrlDocument(); | |
//build element dom tree | |
...... | |
//save the document | |
document.Save(@"ixbrl-file-name.html"); |