Hi all,

When i use this code with relative path, i am getting an error, but
not if i use absolute path.
As a part of my Watir framework, i need to use relative path. Please
help me in this. - Thanks

****************************************************************************************
excel = WIN32OLE::new("excel.Application")
workbook = excel.Workbooks.Open("..\\Test Data\\Test Data.xls")

**************************************************************************************
Error:

ReadingEXCEL.rb:5:in `method_missing': Open (WIN32OLERuntimeError)
    OLE error code:800A03EC in Microsoft Office Excel
      'c:\Test Data\Test Data.xls' could not be found. Check the
spelling of the file name, and verify that the file location is
correct.

If you are trying to open the file from your list of most recently
used files on the File menu, make sure that the file has not been
renamed, moved, or deleted.
    HRESULT error code:0x80020009
      Exception occurred.       from ReadingEXCEL.rb:5
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to