From: ILya on 1 Feb 2010 01:45 I work with TclTk 8.4.13 on WinXP and use TCom for create/open/edit an Excel files. The below script is working well, but suddenly yesterday it crashed. set application [::tcom::ref createobject "Excel.Application"] set workbooks [$application Workbooks] set workbook [$workbooks Open $fileName] $application Visible 1 set worksheets [$workbook Worksheets] At this stage the following error was raised: invalid command name "::tcom::NULL" invalid command name "::tcom::NULL" while executing "$workbook Worksheets" .... *) The "fileName" is an existing xls file. Today I succesfully opened it with the above script. My questions are: 1. What can cause to tcom to operate the NULL command? 2. Why tcom doesn't have the NULL command? Thanks, Ilya
|
Pages: 1 Prev: Data Validation. Next: Gridplus2 Notebook Widget Page Focus Event |