问题描述
我有一个数据集,并且使用Microsoft Jet 4.0 Oledb提供程序将其写入Excel文件的值。我想把超链接放在excel中,为此我写了= HYPERLINK(),然后将其写入excel。但是当excel打开时,它会在公式之前加上一个'(引号/撇号),而且它作为一个文本而不是链接。你可以帮我删除那个引用,以便我的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?
我需要使用Microsoft Jet 4.0提供程序(不是excel组件)作为客户端机器可能安装了MS-Excel,也可能没有安装在他的机器上。
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.
推荐答案
Jet将提供数据与Excel集成。您可以读/写数据。不是公式或格式化或其他任何东西。
Jet will provide data integration with Excel. You can read/write data. Not formulas or formatting or anything else.
要做所需的输出格式化数据。您可以通过生成一个HTML文件并告诉客户它是Excel,它可以正常工作,但有轻微的副作用。更好的选择是使用实际的Excel二进制写入器。这里有很多选项:
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:
这篇关于Microsoft Jet oledb连接到excel失去公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!