MS-Word 到 iXBRL

发布于 2024-09-14 17:07:15 字数 138 浏览 4 评论 0原文

我需要使用 VS2008 开发一个 MS-Word 插件应用程序,将具有内容控件的 docx 文件转换为 iXBRL 格式。 iXBRL 格式是一种相对较新的财务报表标准。

是否有任何 API 可以帮助我,或者任何人都可以给我一个继续进行的想法吗?

I need to develop a MS-Word plug in application using VS2008 that converts a docx file having content controls to iXBRL format. iXBRL format is a relatively new financial statement standard.

Are there any APIs to help me out or can anyone give me idea to go ahead with it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

最近可好 2024-09-21 17:07:15

我会通过 XSLT 将 OpenXML docx 转换为 XHTML 来完成此操作。

我的 XSLT 会问“内容控件是否有包含任何特殊指令的标签?”

这样的指令可能是: 将此内容控件输出为元素 us-gaap:DebtDisclosureTextBlock

在这种情况下,包含的任何内容控件都将包装在该元素中。

如果您采用这种方法,您需要:

  1. 一种将 docx 转换为 XHTML 的方法,该方法将按照内容控制标记中的说明进行操作

  2. 首先添加内容控制标记的方法(您可以通过 Word 功能区 - 开发人员选项卡执行此操作,但您可能希望为用户提供选择适当的 XBRL 元素的方法)

I'd do it by converting the OpenXML docx to XHTML via XSLT.

My XSLT would ask "does the content control have a tag containing any special instruction?"

Such an instruction might be: output this content control as element us-gaap:DebtDisclosureTextBlock

In which case whatever the content control contained would be wrapped in that element.

If you take this approach, you need:

  1. a way of doing the docx to XHTML which acts on the instructions in your content control tag

  2. a way of adding the content control tag in the first place (you can do this via the Word Ribbon - Developer tab, but you might want to give your users a way to choose the appropriate XBRL element)

痴梦一场 2024-09-21 17:07:15

我曾在 IXBRL 工作过,甚至开发过将 doc 转换为 ixbrl 文件的软件。
IXBRL 文件只不过是带有 IXBRL 标签的 Xhtml 文件。(你必须知道这一点)。
软件实际上按照您回答的方式工作。

DOC>>(转换成)XHTML>>然后使用软件进行标记,使其成为 IXBRL 文件。
后面的过程有点乏味,你需要专门的软件来完成。
该软件需要数年时间才能构建,您需要购买它或自己创建。(就像我们一样)

但是
Mozilla 插件可以帮助您将 Xhtml 转换为 iXBRL 格式。

https://addons.mozilla.org/en-US/firefox /addon/xbrl-addon/

I have worked in IXBRL and even worked on the Software which converts doc into the ixbrl file.
IXBRL files are nothing but Xhtml files which are having IXBRL tags.( u must be knowing this).
Software actually works the way u had answered.

DOC >>(converted into) XHTML >> then tagging is done using software to make it IXBRL file.
The later procedure is a bit tedious and u need specialized softwares for that.
This softwares take years to built and you need to either purchase it or create on your own.(like we did)

But
There is Mozilla addon available which will help you in converting Xhtml into iXBRL formats.

https://addons.mozilla.org/en-US/firefox/addon/xbrl-addon/

柳若烟 2024-09-21 17:07:15

将文件另存为 html 文件并使用 C# 中的 XML DOM 编辑标签。但由于我是 C# 新手,我并不真正知道如何有效地做到这一点。

Save the file as an html file and edit the tags using XML DOM in C#. But as I'm new to C# I'm not really aware how to do it efficiently.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文