在Jython中将Excel文件转换为Html
Contents
[
Hide
]
Aspose.Cells - 将Excel文件转换为Html
使用Aspose.Cells Java for Jython进行附加文档。这里可以看到示例代码。
Jython 代码
from aspose-cells import Settings
from com.aspose.cells import Workbook
from com.aspose.cells import SaveFormat
class ConvertingExcelFilesToHtml:
def __init__(self):
dataDir = Settings.dataDir + 'WorkingWithFiles/ConvertingExcelFilesToHtml/'
saveFormat = SaveFormat
workbook = Workbook(dataDir + "Book1.xls")
#Save the document in PDF format
workbook.save(dataDir + "OutBook1.html", saveFormat.HTML)
# Print message
print "\n Excel to HTML conversion performed successfully."
if __name__ == '__main__':
ConvertingExcelFilesToHtml()
下载运行代码
从以下任何社交编码网站下载Append Documents (Aspose.Cells)