Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require_once("Java.inc");
require_once("lib/aspose.cells.php");
use aspose\cells;
use aspose\cells\Workbook;
use aspose\cells\HtmlSaveOptions;
// load document to be converted
$wkbk = new Workbook("Book.xlsx");
// create and set HTML save options
$options = new HtmlSaveOptions();
$options->setAddTooltipText(true);
// save as HTML
$wkbk->save("output.html", $options);
require_once("Java.inc");
require_once("lib/aspose.cells.php");
use aspose\cells;
use aspose\cells\Workbook;
// load document to be converted
$wkbk = new Workbook("Book.xlsx");
// save as HTML
$wkbk->save("output.html", SaveFormat::HTML);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment