代码示例:调用SPS提供的remoting服务,在线把Office文档转换成html文档


可以把office文档中的图片等文件一齐转换,效果不错

using System;

namespace ToHtmlLibrary
{
    
/// <summary>
    
/// EDocumentType 的摘要说明。
    
/// </summary>

    public enum EDocumentType
    
{
        Word,
        Excel,
        PowerPoint,
        Unknow

    }

}



using System;
using System.IO;
using Microsoft.HtmlTrans;

namespace ToHtmlLibrary.Core
{
    
/// <summary>
    
/// 把Office文档转换成html文档
    
/// </summary>

    public class TransToHtml
    
{
        
Field 
        
Property 
        
Constructor
        
Private Method
        
Public Method 
    }

}


我的个人主页

posted @ 2004-11-17 16:23  umlchina  阅读(951)  评论(1编辑  收藏  举报