在 Jython 中将 Excel 文件转换为 Html
Contents
[
Hide
]
Aspose.Cells - 将 Excel 文件转换为 Html
使用附加文档Aspose.Cells Java 对于 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()
下载运行代码
下载**附加文件 (Aspose.Cells)**来自以下任何社交编码网站: