I saw a very simple demonstration last night (at the Boulder Java users
group) where Scott Davis showed a very simple java server pages program that
transmitted HTML table data to a browser resident instance of Microsoft
Excel. IE automatically looked at the mime types and invoked MS Excell to
convert the HTML to a spreadsheet.
I've translated his very simple JSP file to perl cgi program but it does not
work with Apache HTTPD 2.48/IE6. Can someone tell me what I am doing wrong?
Presently my browser (IE 6) just displays HTML and I am expecting it to
display an Excel Spreadsheet.
Thanks,
Siegfried
#!c:/Perl/bin/Perl.exe
#print "Content-type:text/html\n\n";
print "Content-type:application/vnd.ms-excel\n\n";
print qq[
<HTML>
<HEAD>
</HEAD>
<BODY>
<h1>Sales Report</h1>
<table border="1">
<tr>
<th>Region</th>
<th>q1</th>
<th>q2</th>
<th>q3</th>
<th>q4</th>
</tr>
<tr>
<td>East</td>
<td>5,000</td>
<td>7,000</td>
<td>9,000</td>
<td>8,000</td>
</tr>
<tr>
<td>West</td>
<td>11,000</td>
<td>14,000</td>
<td>10,000</td>
<td>17,000</td>
</tr>
</table>
</body>
</html>
];