in reply to Converting XLS to HTML

Is there a reason, that you are creating a excel file first?

Most probably it would be better to write the html directly, using e.g. HTML::table, or Template

This way you have also much more control about how the result will look like