GetObject : GetObject « MS JScript « JavaScript Tutorial

JavaScript Tutorial
1. Language Basics
2. Operators
3. Statement
4. Development
5. Number Data Type
6. String
7. Function
8. Global
9. Math
10. Form
11. Array
12. Date
13. Dialogs
14. Document
15. Event
16. Location
17. Navigator
18. Screen
19. Window
20. History
21. HTML Tags
22. Style
23. DOM Node
24. Drag Drop
25. Object Oriented
26. Regular Expressions
27. XML
28. GUI Components
29. Animation
30. MS JScript
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
JavaScript Tutorial » MS JScript » GetObject 
30. 14. 1. GetObject

Syntax


  
    GetObject(path)
    GetObject(path, app.type)


  

The GetObject function returns a reference to an Automation object from a file. The path parameter represents the full path and name to the file containing the object you wish to retrieve.

To activate only part of the file, place an exclamation point, !, at the end of the path followed by the part you want to activate.

The app.type attribute is the program ID or formal definition of the object.

The app portion represents the name of the application, and the type designates the type of object.

If this parameter is not passed, the Automation object will try to determine which application to start.

 
    
    <html>
    <body>
    <script language="JScript">
    <!--
    var myObj = GetObject("C:\\TEMP\\TESTOBJ.XLS");
    var myObjRef = GetObject("C:\\TEMP\\TESTOBJ.XLS!sheet1");
    // End hide-->
    </script>
    </html>

        
30. 14. GetObject
30. 14. 1. GetObject
w___w_w__.__j__a__v__a__2__s___.___c__o__m___ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.