View Single Post
  #1 (permalink)  
Old 02-17-2003, 01:20 AM
emicky emicky is offline
Junior Member
 
Join Date: Feb 2003
Posts: 9
Default open excel file?

first if the file is doc or chm file, it is right.
but if it is excel file ... , use

getPath = getAppDir();
Shell.open(getPath + "excel/1.xls");

to open one xls file, something wrong!

i built it in win2000 pro, then:
1.in my computer, it's all right.
2.but when test it in winxp or win98, it launch the Excel2000 and show one message which said it can not find the "1.xls".
3.if change the location of "1.xls" to the root, use
Shell.open(getPath + "1.xls");
it's all right all all OS.

so strange!
why?
Reply With Quote