| **Navigation:**  [[introduction.htm|Language Reference]] > 9 -  Window and Report Attributes > Window and Report Attributes >====== DOCUMENT (create OLE control object from file) ====== | [[docked set dockable toolbox window docked at open .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[double noframe resize set window border .htm|{{btn_next_n.gif|Next page}}]] | | || {{newc7.jpg|NewC7.jpg}} **DOCUMENT( **//filename//** )** {{blk2blue.jpg|blk2blue.jpg}} | **DOCUMENT** | Specifies creating an object for the OLE control from a data file specific to an OLE server application. | | //filename// | A string constant containing the name of the file. | The **DOCUMENT** attribute (PROP:DOCUMENT, write-only) specifies creating an object for the OLE control from a data file specific to an OLE server application. The //filename// parameter syntax must be a fully-qualified pathname, unless the file exists in the same directory as the OLE Controller application. **Example:** **WinOne WINDOW,AT(0,0,200,200)** **        OLE,AT(10,10,160,100),USE(?OLEObject),****DOCUMENT****('Book1.XLS')  !Excel Spreadsheet** **         MENUBAR** **          MENU('&Clarion App')** **           ITEM('&Deactivate Object'),USE(?DeactOLE)** **          END** **         END** **        END** **       END**