Thanks guys. I am using a machine with office. I took a look at Win32::OLE. It should be able to do it. But Is there some sample code that can help me out?
I tried the sample that was in the documentations.
This is what I tried but it doesn't seem to work:
use Win32::OLE;
$doc = 'Smoke_Test.xls';
$ex = Win32::OLE->GetObject($doc);
# get a new workbook
$book = $ex->Workbooks->Add;
# write to a particular cell
$sheet = $book->Worksheets("Sheet1");
$sheet->Cells(1,1)->{Value} = "foo";
undef $book;
undef $ex;
__END__
2005-05-05 code tags added by Arunbear
|