I have an excel spreadsheet that lives on the server, I'm trying to get it to open on my browser window.
This is my code (openxl.cgi):
$excel="\/usr\/common\/reportdir\/excelsample.xls";
print "content-type: application/vnd.ms-excel\n";
print "content-disposition: inline\n\n";
print $excel;
The browser opens excel, but I don't get my data, instead all I see is the name of my data file (the /usr/common/...xls) in the first cell.
What am I doing wrong?
Thanks for any help
This is my code (openxl.cgi):
$excel="\/usr\/common\/reportdir\/excelsample.xls";
print "content-type: application/vnd.ms-excel\n";
print "content-disposition: inline\n\n";
print $excel;
The browser opens excel, but I don't get my data, instead all I see is the name of my data file (the /usr/common/...xls) in the first cell.
What am I doing wrong?
Thanks for any help