From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



Write To Spreadsheet File VI不能写入带有多个数据页的Excel工作簿



主要软件:
主要软件版本: N/A
主要软件修正版本: N/A
次要软件: N/A

问题: 我正在使用Write To Spreadsheet File VI产生一个电子表格文件。然而,当我在Excel中打开这个电子表格时,创建了一个额外的数据页,可是我就不能写数据到原来的数据页了,而且没有错误输出。

解答: Write To Spreadsheet File VI不能写数据到包含多个数据页的工作簿中,因为它无法识别不同的数据页。如果您希望继续写到原来的数据页的话,您必须使用ActiveX。ActiveX的通讯的例子程序可在LabVIEW中找到:

另一个方法就是使用LabVIEW Report Generation Toolkit for Microsoft Office (链接如下),它提供了一个易于使用的工具来与Microsoft Excel 和 Word交互。

相关链接: Products & Services: LabVIEW Report Generation Toolkit for Microsoft Office
KnowledgeBase 2OQFKADW: Exporting Waveforms to Spreadsheet File
KnowledgeBase 1RBDAG5P: Write to Spreadsheet File.vi Cannot Handle Inputs Larger than a Single Precision Variable Can Hold
KnowledgeBase 2FTBERRK: Write Table To Excel Example VI is Broken


附件:





报告日期: 08/15/2006
最近更新: 08/17/2006
文档编号: 2KM9845P