javascript 通过activexobject excel应用方法和属性

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9780389/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 07:49:28  来源:igfitidea点击:

excel application methods and properties via activexobject

javascript

提问by user582485

is there a list of methods and properties that an excel object created via

是否有一个 excel 对象通过创建的方法和属性列表

new ActiveXObject("Excel.Application");

new ActiveXObject("Excel.Application");

has?

拥有?

var excel = new ActiveXObject("Excel.Application");

回答by Llessur

The Excel object model is fully documented on MSDN. Here is the Excel 2010 Application object. Use the links in the left navigator to view properties and members.

Excel 对象模型在 MSDN 上有完整的文档。这是 Excel 2010 应用程序对象。使用左侧导航器中的链接查看属性和成员。

http://msdn.microsoft.com/en-us/library/ff194565.aspx

http://msdn.microsoft.com/en-us/library/ff194565.aspx

Move up the navigator tree to Reference to see all the objects.

将导航树向上移动到参考以查看所有对象。

http://msdn.microsoft.com/en-us/library/ff846392.aspx

http://msdn.microsoft.com/en-us/library/ff846392.aspx

回答by Zev Spitz

In addition to the Microsoft documentation, there are also Typescript definitions for Excelavailable on DefinitelyTyped.

除了 Microsoft 文档外,还可以在绝对类型上找到 Excel 的 Typescript 定义

You can use an editor like VS Code that can leverage Typescript definitions in Javascript to get Intellisense for these types in Javascript.

您可以使用像 VS Code 这样的编辑器,它可以利用 Javascript 中的 Typescript 定义来获取 Javascript 中这些类型的智能感知。

(Disclaimer: I am the author of the Typescript definitions for Excel.)

(免责声明:我是 Excel 的 Typescript 定义的作者。)