易截截图软件、单文件、免安装、纯绿色、仅160KB

word、ppt、excle 转换html,采用jacob

下载 jacob-1.15-M3
地址http://sourceforge.net/projects/jacob-project/
开发工具 MyEclipse8.0 绿色版、Tomcat 6.0 绿色版,JDK 1.6,XP系统,J2EE项目
在MyEclipse中配置Tomcat,使用自己安装的JDK
接着配置MyEclipse 的JRE
Window---Preferences--Java---Installed JREs--选择之前配置Tomcat时加入的jdk
把jacob-1.15-M3-x86.dll 放到这目录下
C:\Program Files\Java\jdk1.6.0_10\jre\bin
把jacob.jar 放到这目录下
D:\tomcat6\lib
Jacob2Html.java 这个类是在网上找的,谁写了,我记不得了。
package jacob;
//import org.apache.commons.logging.Log;
//import org.apache.commons.logging.LogFactory;
//import com.hz.dao.NoticeDAO;
import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.Dispatch;
import com.jacob.com.Variant;
public class Jacob2Html
{
// private static final Log log = LogFactory.getLog(Jacob2Html.class);
 /** 
     * PowerPoint转成HTML 
     * @param pptPath PowerPoint文件全路径 
     * @param htmlfile 转换后HTML存放路径 
    */ 
    public static void pptToHtml(String pptPath, String htmlPath)  
    {  
     ActiveXComponent offCom = new ActiveXComponent("PowerPoint.Application");
        try 
        {  
         offCom.setProperty("Visible", new Variant(true));  
            Dispatch excels = offCom.getProperty("Presentations").toDispatch();  
            Dispatch excel = Dispatch.invoke(excels,
             "Open",Dispatch.Method, new Object[] { pptPath, new Variant(false),  new Variant(false) }, new int[1]).toDispatch();  
 &nbs


相关文档:

Html中Label标记的作用和使用介绍


Html中Label标记的作用和使用介绍
Label标识有两个属性,一个是FOR,一个是ACCESSKEY。
FOR的意思是,这个Lable是为哪个控件服务的;
ACCESSKEY则定义了访问这个控件的热键。
比如,有一个名字叫Name的文本框,<INPUT TYPE="TEXT" ID="Name" SIZE=30>,
那么,<label>就可以定义成:<LABEL FOR="Nam ......

html解析 网页颜色编码表

网页预定义颜色编码列表
const unsigned int gl_color_value[] = {
 0xF5F5DC,
 0x000000,
 0xFF0000,
 0xD2B48C,
 0xFFD700,
 0x008080,
 0xF0E68C,
 0x00FF00,
 0x00FFFF,
 0x0000FF,
 0x00FFFF,
 0xFF7F50,
 0x008000,
 0xFDF5E6 ......

HTML 服务器控件语法

<script language="C#" runat="server">
  void Page_Load(Object sender, EventArgs e) {
    Message.InnerHtml = "Welcome to ASP.NET";
  }
</script>
...
<span id="Message" style="font-size:24" runat="server"/> ......

php 正则表达式 html中的回车

//回车:[\n\r\t]
$reg="|typeid=\"(.*)\" onsel.*[\n\r\t]*<a href="\" mce_href="\""#\">(.*)</a>|";
preg_match_all ($reg,
$html,
$out, PREG_PATTERN_ORDER);
foreach ($out as $value){
foreach ($value as $value2){
if(strlen($value2)<20)
echo ($value2."<br>");
}
} ......

struts1标签之html:optionsCollection

我们常常把一组集合放到每个页面的下拉框中,这里利用struts1的html:optionsCollection可以省很多事。
举个例子:
写一个公共静态方法:
public static Collection<LabelValueBean> getAllType() {
Collection<LabelValueBean> col = new ArrayList<LabelValueBean>();
col.add(new LabelValueBean( ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号