We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Is there any way to control the size of the HTML page created when saving to HTML?

I’ve been evaluating Aspose.Cells for .NET and it’s been doing a great job of converting Excel files to HTML pages.

One question that remains - is there any way to control the size of the HTML file that is create?. In the attached screenshot you can see that the file is generated as expected but only occupies about half of the browser and shows whitespace in the other half… This does not look good when the files are displayed on mobile devices.

What factors in the Excel file determine the size/width of the appearance in HTML? Are there any options that would allow the HTML file to resize itself depending on the size of the browser?

Thank you
Dan

Hi Dan,

Thanks for your posting and considering Aspose.Cells.

Pages or page size simply do not exist in case of HTML web page, both are invalid, so you cannot specify the page size of HTML.

You can check it in MS-Excel by converting some Excel file into HTML and you will see that entire worksheet will be exported as a single web page.

So is the case of Aspose.Cells which works same as Microsoft Excel.