From: cliveharber@... Date: 2009-08-04T22:45:44+09:00 Subject: Re: Spreadsheet link to a file use Spreadsheet::Link.new(url='file:///path_to_file') This should create the link HTH Clive ---- as wrote: > > Hi, > > > I'm looking for a way to create a link to a local file with the > spreadsheet gem. I can make a link to a site (see example below), but > what is the syntax for a file? > > Thanks, > > %%%%% > #!/usr/bin/env ruby > require 'rubygems' > require 'spreadsheet' > > book = Spreadsheet::Workbook.new > sheet = book.create_worksheet > sheet[0,0] = > Spreadsheet::Link.new(url='http://www.google.fr',fragment="google") > book.write 'test.xls' > %%%% > > -- > Arnaud >