Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.htm]"PerceivedType"="text"@="htmlfile""Content Type"="text/html" [HKEY_CLASSES_ROOT\.htm\OpenWithList] [HKEY_CLASSES_ROOT\.htm\OpenWithList\Excel.ex
代码: #coding=utf-8 __author__ = 'zhm' from win32com import client as wc import os import time import random import MySQLdb import re def wordsToHtml(dir): #批量把文件夹的word文档转换成html文件 #金山WPS调用,抢先版的用KWPS,正式版WPS word = wc.Dispatch('KWPS.Application') for pat
一.简介 一般word文件后缀有doc.docx两种.docx是office word 2007以及以后版本文档的扩展名:doc是office word 2003文档保存的扩展名.对于这两种格式的word转换成html需要使用不同的方法.对于docx格式的文档使用xdocreport进行转换.依赖如下: <dependency> <groupId>fr.opensagres.xdocreport</groupId> <artifactId>fr.opensa