path =  "C:\Gaurang\ruby\demo.xls"

is not valid! you NEED
path =  "C:\\Gaurang\\ruby\\demo.xls"
or
path =  'C:\Gaurang\ruby\demo.xls'

-- 
Posted via http://www.ruby-forum.com/.