Microsoft Jet oledb 与 Excel 的连接丢失公式

发布于 2024-08-28 23:28:58 字数 379 浏览 1 评论 0原文

我有一个数据集,并使用 Microsoft Jet 4.0 Oledb 提供程序将其值写入 Excel 文件。我想将超链接放入Excel中,为此我编写“=HYPERLINK(”http://www. abc.org/x.pdf")" 在 DS 中,然后写入 Excel。但是,当打开 Excel 时,它会在公式之前添加前缀 ' (引号/撇号),并且它以文本形式出现,而不是链接。您能否帮我删除该引用,以便我的 Excel 文件具有超链接而不是文本形式?

我需要使用 Microsoft Jet 4.0 提供程序(不是 Excel 组件),因为客户端计算机上可能安装也可能没有安装 MS-Excel。

I have a dataset and I write it's values to an excel file using Microsoft Jet 4.0 Oledb provider. I want to put hyperlinks into the excel, for this I write "=HYPERLINK("http://www.abc.org/x.pdf")" in DS and then write it to excel. But when the excel is opened it prefixes a ' (quote/apostrophe) before the formula and there it comes as a text, not link. Can you help me removing that quote so that my excel file has hyperlinks instead of that as text?

I need to use Microsoft Jet 4.0 provider (not excel component) as the client machine may or may not have MS-Excel installed on his machine.

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

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

发布评论

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

评论(1

落花浅忆 2024-09-04 23:28:59

Jet 将提供与 Excel 的数据集成。您可以读取/写入数据。不是公式或格式或其他任何东西。

要执行您想要的操作,您需要输出格式化数据。您可以通过生成 HTML 文件并告诉客户端它是 Excel 来完成此操作,该文件可以正常工作,但有轻微的副作用。更好的选择是使用实际的 Excel 二进制编写器。这里有很多选项:

导入和导出 Excel - 最好的库是什么?

Jet will provide data integration with Excel. You can read/write data. Not formulas or formatting or anything else.

To do what you want you'll need to output formatted data. You can do this by generating an HTML file and telling the client it's Excel which will work fine but has minor side effects. A better option would be to use an actual Excel binary writer. A lot of options here:

Import and Export Excel - What is the best library?

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