[Wtr-general] problem in opening a file

VIKASH KUMAR vikashkumar051 at yahoo.co.in
Sat Aug 5 06:20:03 EDT 2006


I am loading a file by giving the absolute path, the below code works fine:
   
  excel = WIN32OLE::new('excel.Application')
        
 workbook = excel.Workbooks.Open('C:\demo\mation.xls')
          worksheet = workbook.Worksheets(1)   
          worksheet.Select
          excel['Visible'] = true
   
   
  I want to use the name of the file to open 'mation.xls', not the entire path 'C:\demo\mation.xls'.
   
  Please send me a solution for this.
   
  Thanks in advance
   
  Vikash Kumar
   

 				
---------------------------------
 Here’s a new way to find what you're looking for - Yahoo! Answers 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060805/570ca20b/attachment.html 


More information about the Wtr-general mailing list